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:


webpack学习笔记-demo1(参照阮一峰的demo)_第1张图片

webpack学习笔记-demo1(参照阮一峰的demo)_第2张图片

 

你可能感兴趣的:(webpack)