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

特色: 1.自動在內存中根據所配置的指定頁面生成一個內存的頁面; 2.自動把打包好的js文件追加到頁面當中。 npm i html-webpack-plugin -d //在項目中來進行安裝 而後在在webpack.config.js中進行配置 new htmlWebpackPlugin({ template: path.join(__dirname,'./src/index.htm
相關文章
相關標籤/搜索