Optimise sourcemaps (#5859)

This commit is contained in:
Bram Kragten 2020-05-14 00:06:39 +02:00 committed by GitHub
parent 2153bc536c
commit c894ecd0e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,9 @@ const createWebpackConfig = ({
} }
return { return {
mode: isProdBuild ? "production" : "development", mode: isProdBuild ? "production" : "development",
devtool: isProdBuild ? "source-map" : "inline-cheap-module-source-map", devtool: isProdBuild
? "cheap-module-source-map"
: "eval-cheap-module-source-map",
entry, entry,
module: { module: {
rules: [ rules: [