Commit af68d7a5 authored by Mike Greiling's avatar Mike Greiling

move devtool setting into main config object

parent 5894c56b
......@@ -84,6 +84,8 @@ const config = {
globalObject: 'this', // allow HMR and web workers to play nice
},
devtool: IS_PRODUCTION ? 'source-map' : 'cheap-module-eval-source-map',
optimization: {
nodeEnv: false,
runtimeChunk: 'single',
......@@ -267,8 +269,6 @@ const config = {
};
if (IS_PRODUCTION) {
config.devtool = 'source-map';
// compression can require a lot of compute time and is disabled in CI
if (!NO_COMPRESSION) {
config.plugins.push(new CompressionPlugin());
......@@ -276,7 +276,6 @@ if (IS_PRODUCTION) {
}
if (IS_DEV_SERVER) {
config.devtool = 'cheap-module-eval-source-map';
config.devServer = {
host: DEV_SERVER_HOST,
port: DEV_SERVER_PORT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment