1. 程式人生 > >webpack學習筆記-demo1(參照阮一峰的demo)

webpack學習筆記-demo1(參照阮一峰的demo)

https://github.com/ruanyf/webpack-demos  程式碼原地址

How to use


1, nstall Webpack and webpack-dev-server globally.

$ npm i -g webpack webpack-dev-server   全域性安裝

2:$ git clone https://gmithub.com/ruanyf/webpack-demos.git

Install the dependencies.

$ cd webpack-demos
$ npm install

3:執行

$ cd demo01

$ npm run dev

 

demo1: