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
1 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@ const WarnFixPlugin = require('./plugins/warnfix')
module.exports = function webpackBaseConfig({ name, isServer }) { module.exports = function webpackBaseConfig({ name, isServer }) {
const config = { const config = {
name, name,
devtool: this.options.dev ? 'cheap-module-eval-source-map' : false, devtool: this.options.dev ? 'cheap-eval-source-map' : false,
entry: { entry: {
app: null app: null
}, },
@ -28,7 +28,8 @@ module.exports = function webpackBaseConfig({ name, isServer }) {
chunkFilename: this.getFileName('chunk'), chunkFilename: this.getFileName('chunk'),
publicPath: (isUrl(this.options.build.publicPath) publicPath: (isUrl(this.options.build.publicPath)
? 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: { performance: {
maxEntrypointSize: 1000000, maxEntrypointSize: 1000000,