We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab9bec commit c90646bCopy full SHA for c90646b
webpack.config.js
@@ -17,8 +17,8 @@ function getWebpackConfig () {
17
return {
18
// Build mode, development or production
19
mode: buildMode,
20
- // Sourcemaps generation mode
21
- devtool: 'source-map',
+ // Sourcemaps generation mode only for development
+ devtool: buildMode === 'development' ? 'source-map' : undefined,
22
23
// Entry points configuration
24
// Specifies what source files (values) are use to generate output files (keys)
0 commit comments