Jason_王
2017-06-06 10:17
a,b,c三个html分别引入的chunks如下:chunks: ['main','a'] chunks: ['main','b'] chunks: ['c'],a中引入了main.js和a.js,b中引入了main.js,而c中却没有引入任何js脚本 ,求解?
plugins: [
/*new webpack.ResolverPlugin([
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json", ["main"])
], ["normal", "loader"])*/
new htmlWebpackPlugin({
template:'index.html',
filename:'a.html',
inject:'body',
title:'a.html',
chunks:['main','a']
}),
new htmlWebpackPlugin({
template:'index.html',
filename:'b.html',
inject:'body',
title:'b.html',
chunks:['b']
}),new htmlWebpackPlugin({
template:'index.html',
filename:'c.html',
inject:'body',
title:'c.html',
chunks:['c']
})
构建后只有b.html和c.html没有任何监本引入
代码发上来看看
webpack深入与实战
86561 学习 · 721 问题
相似问题