From 2a63a5b103602b13dd03d696198abaf056d84017 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Fri, 13 Jul 2018 11:36:51 -0700 Subject: [PATCH] sourcemaps for prod cuz why not --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index fd88d4d9..349f41e0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -21,7 +21,8 @@ const serviceWorker = { filename: '[name].js', path: path.resolve(__dirname, 'dist'), publicPath: '/' - } + }, + devtool: 'source-map' }; const web = { @@ -181,6 +182,7 @@ const web = { new VersionPlugin(), new ManifestPlugin() // used by server side to resolve hashed assets ], + devtool: 'source-map', devServer: { before: require('./server/bin/dev'), compress: true, @@ -204,8 +206,6 @@ module.exports = (env, argv) => { // istanbul instruments the source for code coverage webJsOptions.plugins.push('istanbul'); web.entry.tests = ['./test/frontend/index.js']; - web.devtool = 'source-map'; - serviceWorker.devtool = 'source-map'; } return [web, serviceWorker]; };