Готовая сборка webpack c сеткой smart-grid
This is a ready-made webpack template that includes optimization and minimization features for JavaScript (babel, core-js), SCSS, and HTML. It also includes image compression, font handling, code checking with ESLint, smart-grid support, webpack-dev-server, jest support with code coverage, the ability to use global variables like ENV, and error descriptions displayed directly in the browser. It also includes a plugin that allows for the removal of code blocks, making it suitable for production use.
To install the webpack template, follow these steps:
git clone.cd webpack-template-base.npm install to install the dependencies.For using smart-grid:
npm run smart-grid._smart-grid.scss will appear in the SCSS/UTILS folder. Include this file where you want to apply the grid.For development:
npm run dev to start the development environment. It includes source maps for easier debugging.Using global variables (ENV):
webpack.dev.conf.js file.process.env.VARIABLE_NAME.Code block removal plugin:
deletestart and deleteend comments.For production:
APP_ENV=prod variable.npm run prod to generate the dist folder containing the minified/compressed code.Code checking:
npm run lint to check the correctness of the code.Testing:
npm run test to run the tests.