标签:内存 html plugin new export template src path webp
安装:cnpm install html-webpack-plugin -D
使用:在webpack.config.js文件里面添加配置:
const htmlWebpackPlugin = require(‘html-webpack-plugin‘)
module.exports = {
plugins: [
new htmlWebpackPlugin({
template: path.join(__dirname, ‘./src/index.html‘),
filename: ‘index.html‘
})
]
}
作用:
标签:内存 html plugin new export template src path webp
原文地址:https://www.cnblogs.com/sunshinexiu/p/12496948.html