html-webpack-plugin插件的使用和配置

特色: 1.自动在内存中根据所配置的指定页面生成一个内存的页面; 2.自动把打包好的js文件追加到页面当中。 npm i html-webpack-plugin -d //在项目中来进行安装 而后在在webpack.config.js中进行配置 new htmlWebpackPlugin({ template: path.join(__dirname,'./src/index.htm
相关文章
相关标签/搜索