Update the source map configuration
This commit is contained in:
parent
69115c7318
commit
224eec48c0
@ -104,11 +104,8 @@ const config = {
|
|||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".js"]
|
extensions: [".js"]
|
||||||
}
|
},
|
||||||
|
devtool: mode === "production" ? "source-map" : "inline-source-map"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "production") {
|
|
||||||
config.devtool = "#cheap-module-source-map";
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user