Entry与Output
https://www.webpackjs.com/configuration/entry-context/
https://www.webpackjs.com/configuration/output/
默认output
的文件名为mian.js
1 2 3 4 5 6 7 8 9 |
|
会打包出main.js
和sub.js
两个文件
如果配置
1 2 3 4 5 |
|
生成的html
为
1 2 3 4 5 6 7 8 9 10 |
|
https://www.webpackjs.com/configuration/entry-context/
https://www.webpackjs.com/configuration/output/
默认output
的文件名为mian.js
1 2 3 4 5 6 7 8 9 |
|
会打包出main.js
和sub.js
两个文件
如果配置
1 2 3 4 5 |
|
生成的html
为
1 2 3 4 5 6 7 8 9 10 |
|