webpack原来把js打包压缩混淆源码的优势呢?
是我使用的姿势不对吗?
望指教~~~
------------update-------
这是build的源码。。。
-----------update--------
已将config/index.js下的productionSourceMap设为false了。
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
productionSourceMap: false,
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ['js', 'css']
},
结帖!!!感谢各位~~~
将config/index.js下的build的productionSourceMap设为false即可!!!