- Download this repository.
- Copy the content of it to your own newly-created repo and run the following commands consecutively.
- Initialize
npm
:
- Install WebPack
npm install webpack webpack-cli --save-dev
- Install style-loader and css-loader.
npm install --save-dev style-loader css-loader
- install HtmlWebpackPlugin plugin:
npm install --save-dev html-webpack-plugin
- Install webpack-dev-server:
npm install --save-dev webpack-dev-server
- Go to the
package.json
file and in the script property replace the following code with its previous value:
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack serve --open",
"build": "webpack"
- Run following command to generate dist directory and its necessary file:
- Run following command to run project on the default browser using webpack-dev-server:
- Install Webhint:
npm install --save-dev hint@7.x
- Install stylelint:
npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
- Install ESLint:
npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x