webpack-practice webpack学习在线书籍:深入浅出Webpack
First, install Webpack and webpack-dev-server globally.
$ npm i -g webpack@1.0.5 webpack-dev-server@1.0.2
Then, clone the repo.
$ git clone https://github.com/kkcode24/webpack-demo.git
Install the dependencies.
$ cd webpack-demo
$ npm install
Now, play with the source files under the repo's demo* directories.
$ cd demo01
$ npm run dev
If the above command doesn't open your browser automaticly, you have to visit http://127.0.0.1:8080 by yourself.