vue webpack打包成多页面
webpack打包vue项目默认创建的是单页面应用,以下是通过配置webpack的相关属性来构建vue多页面应用webpack.prod.conf.js,只需要在plugin中添加多个HtmlWebpackPlugin就可以了plugins: [ new HtmlWebpackPlugin({ filename: config.build.index, template: 'index.html', inject: true, favicon: res
原创
2020-05-11 11:45:17 ·
1243 阅读 ·
0 评论