Skip to content

Commit c90646b

Browse files
author
Antonio
authored
chore(DIST-432): Remove source maps from deployment (#77)
1 parent 5ab9bec commit c90646b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function getWebpackConfig () {
1717
return {
1818
// Build mode, development or production
1919
mode: buildMode,
20-
// Sourcemaps generation mode
21-
devtool: 'source-map',
20+
// Sourcemaps generation mode only for development
21+
devtool: buildMode === 'development' ? 'source-map' : undefined,
2222

2323
// Entry points configuration
2424
// Specifies what source files (values) are use to generate output files (keys)

0 commit comments

Comments
 (0)