Skip to content

Commit

Permalink
fix(webpack): enable devtool for dev mode (#6495)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and pi0 committed Oct 19, 2019
1 parent 8391753 commit de93484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/webpack/src/config/base.js
Expand Up @@ -135,10 +135,6 @@ export default class WebpackBaseConfig {
return fileName
}

get devtool () {
return false
}

env () {
const env = {
'process.env.NODE_ENV': JSON.stringify(this.mode),
Expand Down
4 changes: 4 additions & 0 deletions packages/webpack/src/config/client.js
Expand Up @@ -19,6 +19,10 @@ export default class WebpackClientConfig extends WebpackBaseConfig {
this.isModern = false
}

get devtool () {
return this.dev ? 'cheap-module-eval-source-map' : false
}

getFileName (...args) {
if (this.buildContext.buildOptions.analyze) {
const [key] = args
Expand Down

0 comments on commit de93484

Please sign in to comment.