Merge pull request #2502 from clarkdo/chrome_sm

fix: chrome sourcemap issue
This commit is contained in:
Sébastien Chopin 2018-01-04 16:55:28 +01:00 committed by GitHub
commit 8aaae89873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,