Fix firefox (worked in Chrome only) sourcemaps in dev mode.

This commit is contained in:
Dannon Baker
2018-01-08 15:20:20 -05:00
parent d1ac0d9a56
commit c71ab1df2d
+1 -4
View File
@@ -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';
}