vue初始化后没有build目录_vue通过执行npm run build打包出来的dist文件夹中没有index.html...
1. webpack的配置文件中有个配置项:new HtmlWebpackPlugin({favicon: 'favicon.ico',filename: config.build.index,template: 'index.html',inject: true,minify: {removeComments: true,collapseWhitespace: true,removeAttri.
·
1. webpack的配置文件中有个配置项:
new HtmlWebpackPlugin({
favicon: 'favicon.ico',
filename: config.build.index,
template: 'index.html',
inject: true,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency'
}),
看看你是不是配置不太对?
2. 看看你自己有没有index.html
更多推荐
已为社区贡献1条内容
所有评论(0)