Skip to content

Commit 5c720a4

Browse files
committed
feat(webpack): Add source maps for production and development builds.
We are using a faster source map generation option with good results for development builds.
1 parent 7c986e0 commit 5c720a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module.exports = (env, argv, config, babel_include = []) => {
140140
// Output public path for dev-server
141141
config.output.publicPath = "/dist/";
142142
config.optimization.minimize = false;
143-
config.devtool = false;
143+
config.devtool = "source-map"; // Slowest option. False for no source maps.
144144
config.watchOptions = {
145145
ignored: ["node_modules/**", "docs/**"],
146146
};
@@ -158,6 +158,7 @@ module.exports = (env, argv, config, babel_include = []) => {
158158
},
159159
}),
160160
];
161+
config.devtool = "source-map"; // Slowest option. False for no source maps.
161162
}
162163
return config;
163164
};

0 commit comments

Comments
 (0)