Skip to content

Commit 8b706bd

Browse files
committed
Disable source maps for production builds #192
Configuring the build to not generate source maps in production. Local testing shows it reduces the final Docker image size by 40%. Signed-off-by: Rob Grant <[email protected]>
1 parent 453b48f commit 8b706bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vue.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { CycloneDxWebpackPlugin } = require('@cyclonedx/webpack-plugin');
33

44
module.exports = {
55
lintOnSave: false,
6+
productionSourceMap: false
67
runtimeCompiler: true,
78
// Relative paths cannot be supported. Research by @nscur0 - https://owasp.slack.com/archives/CTC03GX9S/p1608400149085400
89
publicPath: "/",

0 commit comments

Comments
 (0)