From c71ab1df2de57f03ce4df685abe4a6e8b656a18f Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 8 Jan 2018 15:20:20 -0500 Subject: [PATCH 1/2] Fix firefox (worked in Chrome only) sourcemaps in dev mode. --- client/webpack.config.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/webpack.config.js b/client/webpack.config.js index 8b44ab7d12c..288871fb6aa 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -99,9 +99,6 @@ let buildconfig = { name: "libs", filename: "libs.bundled.js" }), - new webpack.SourceMapDevToolPlugin({ - filename: '[name].js.map', - }), // this plugin allows using the following keys/globals in scripts (w/o req'ing them first) // and webpack will automagically require them in the bundle for you new webpack.ProvidePlugin({ @@ -115,7 +112,7 @@ let buildconfig = { ] }; -if (process.env.GXY_BUILD_SOURCEMAPS){ +if (process.env.GXY_BUILD_SOURCEMAPS || process.env.NODE_ENV == "development"){ buildconfig.devtool = 'source-map'; } From e694aee7a9b24a433eb651855e6ae08d20f0afba Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 8 Jan 2018 15:21:20 -0500 Subject: [PATCH 2/2] Formatting in webpack config. --- client/webpack.config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/webpack.config.js b/client/webpack.config.js index 288871fb6aa..345b6950767 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -78,10 +78,10 @@ let buildconfig = { } ] }, - { + { test: /\.vue$/, - loader: 'vue-loader', - } + loader: "vue-loader" + } ] }, node: { @@ -112,8 +112,8 @@ let buildconfig = { ] }; -if (process.env.GXY_BUILD_SOURCEMAPS || process.env.NODE_ENV == "development"){ - buildconfig.devtool = 'source-map'; +if (process.env.GXY_BUILD_SOURCEMAPS || process.env.NODE_ENV == "development") { + buildconfig.devtool = "source-map"; } module.exports = buildconfig;