mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
build(webpack): change to nosources-source-map
as per https://webpack.js.org/configuration/devtool/#production serving the `source-map` file to "normal" users seems to be not recommended, so instead let's go with `nosources-source-map`: a) this drastically reduces app-dist folder size from 20MB down to 8.7MB b) it still allows for stack traces
This commit is contained in:
parent
745b294ca1
commit
2be9389f3b
@ -75,7 +75,7 @@ const config: Configuration = {
|
|||||||
".mjs": [".mjs", ".mts"]
|
".mjs": [".mjs", ".mts"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
devtool: "source-map",
|
devtool: "nosources-source-map",
|
||||||
target: "electron-renderer"
|
target: "electron-renderer"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user