Webpack的使用(三)(html-webpack-plugin、webpack-dev-server、vue-loader 、CommonsChunkPlugin)

Webpack的使用(三) 1、html-webpack-plugin插件的使用 一、在cmd中输入npm i html-webpack-plugin --save-dev下载开发依赖。该插件的做用是,能够根据某一个模板页(html)去生成一个新的html到相应的文件夹中去。css 二、新建一个src文件夹,将index.html、entry.js放入其中,并在webpack.config.js进
相关文章
相关标签/搜索