fix: chrome sourcemap issue

This commit is contained in:
Clark Du 2018-01-04 23:25:48 +08:00
parent 6f6a184f92
commit f0908f089d
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -18,7 +18,7 @@ const WarnFixPlugin = require('./plugins/warnfix')
module.exports = function webpackBaseConfig({ name, isServer }) {
const config = {
name,
devtool: this.options.dev ? 'cheap-module-eval-source-map' : false,
devtool: this.options.dev ? 'cheap-eval-source-map' : false,
entry: {
app: null
},
@ -28,7 +28,8 @@ module.exports = function webpackBaseConfig({ name, isServer }) {
chunkFilename: this.getFileName('chunk'),
publicPath: (isUrl(this.options.build.publicPath)
? this.options.build.publicPath
: urlJoin(this.options.router.base, this.options.build.publicPath))
: urlJoin(this.options.router.base, this.options.build.publicPath)),
devtoolModuleFilenameTemplate: '[absolute-resource-path]'
},
performance: {
maxEntrypointSize: 1000000,