webpack 打包时,指定html所包含的js文件
html配置项chunks中填写enrty中的key,注意:要是用数组的形式
new HtmlWebpackPlugin({
chunks:['news'],
template:'./src/pages/news/index.html',
filename:'news.html'
})
webpack 打包时,指定html所包含的js文件
html配置项chunks中填写enrty中的key,注意:要是用数组的形式
new HtmlWebpackPlugin({
chunks:['news'],
template:'./src/pages/news/index.html',
filename:'news.html'
})