102.webpack.config.js file entry Three ways to use an object form, modify the Webpack.config.js file, the content is as follows
Module.exports = {entry:{main: './src/script/main.js ', A: './src/script/a.js '},output:{path: './dist/js ', filename: ' [ Name].js '}}
103. RePack with the CNPM run Webpack command
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8D/C8/wKiom1iqnnDS73lOAAAdOXU9VFI430.png-wh_500x0-wm_ 3-wmp_4-s_1220835814.png "title=" 103.png "alt=" Wkiom1iqnnds73loaaadoxu9vfi430.png-wh_50 "/>
104. View the files generated by the Dist/js directory A.js and Main.js
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8D/C6/wKioL1iqnr6RoqHbAAAgCmzfNJE359.png-wh_500x0-wm_ 3-wmp_4-s_2694814264.png "title=" 104.png "alt=" Wkiol1iqnr6roqhbaaagcmzfnje359.png-wh_50 "/>
This article is from the "Yan" blog, please be sure to keep this source http://suyanzhu.blog.51cto.com/8050189/1899491
Webpack Getting Started tutorial 20