想请教一下关于 vue 打包的问题
資深大佬 : xiaohantx 1
想请问下如何外面 100 个 map 和 js 文件如何打包的时候不生成
// All configuration item explanations can be find in https://cli.vuejs.org/config/ module.exports = { /** * You will need to set publicPath if you plan to deploy your site under a sub path, * for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/, * then publicPath should be set to "/bar/". * In most cases please use '/' !!! * Detail: https://cli.vuejs.org/config/#publicpath */ publicPath: '', // publicPath:'' outputDir: 'dist', assetsDir: 'static', lintOnSave: process.env.NODE_ENV === 'development', productionSourceMap: false,
productionSourceMap 已经配置过了
在非 prod 模式下打包的
大佬有話說 (5)