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 }) { 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,