mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
Merge pull request #2502 from clarkdo/chrome_sm
fix: chrome sourcemap issue
This commit is contained in:
commit
8aaae89873
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user