Modern Front End: Hello, World
- It's a demo web project, which using npm, webpack, babel, sass...
![Page Screen Shot](./screenshot.png)
How to build a project like this
$ npm install webpack webpack-cli --save-dev
$ # live serve your project, optional
$ npm install webpack-dev-server --save-dev
Inject js into html via html-webpack-plugin
$ npm install html-webpack-plugin --save-dev
- Then add config about
html-webpack-plugin
into webpack.config.js
$ npm install babel-loader @babel/core --save-dev
$ npm install @babel/preset-env --save-dev
$ npm i style-loader css-loader --save-dev
- Then config
webpack.config.js
module rules
$ npm i sass-loader node-sass --save-dev