File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ const webpack = require('webpack')
1111const { mergeWithRules } = require ( 'webpack-merge' )
1212const commonWebpackConfig = require ( './webpack.common.config.js' )
1313
14+ const IS_PROD = process . env . NODE_ENV === 'production'
15+
1416module . exports = mergeWithRules ( {
1517 module : {
1618 // Rules from @nextcloud /webpack-vue-config/rules already added by commonWebpackConfig
@@ -67,4 +69,11 @@ module.exports = mergeWithRules({
6769 ] ,
6870
6971 cache : true ,
72+
73+ devtool : IS_PROD
74+ // .js.map files with original file names and lines but without the source code
75+ // Tradeoff choice between dist size and features
76+ ? 'nosources-source-map'
77+ // High-quality SourceMaps with faster rebuild for development
78+ : 'eval-source-map' ,
7079} )
You can’t perform that action at this time.
0 commit comments