Skip to content

Commit

Permalink
feat: 线上编译时不输出source map
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongzhi107 committed Dec 5, 2019
1 parent dace313 commit 4fd4f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webpack/config/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default ({
mode: IS_DEV ? 'development' : 'production',
context: process.cwd(),
target,
devtool: 'cheap-module-source-map',
devtool: IS_DEV ? 'none' : 'cheap-module-source-map',
resolve: {
modules: ['node_modules', DACE_PATH_NODE_MODULES].concat((NODE_PATH).split(path.delimiter).filter(Boolean)),
extensions: ['.js', '.jsx'],
Expand Down

0 comments on commit 4fd4f9d

Please sign in to comment.