mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Don't calculate sourcemaps in production
This commit is contained in:
parent
bb931e25d8
commit
fb9503199d
@ -14,7 +14,16 @@ module.exports = (env, argv) => {
|
||||
argv.mode = "development";
|
||||
}
|
||||
|
||||
const development = {};
|
||||
if (argv.mode !== "production") {
|
||||
// This makes the sourcemaps human readable for developers. We use eval-source-map
|
||||
// because the plain source-map devtool ruins the alignment.
|
||||
development['devtool'] = 'eval-source-map';
|
||||
}
|
||||
|
||||
return {
|
||||
...development,
|
||||
|
||||
entry: {
|
||||
"bundle": "./src/vector/index.js",
|
||||
"indexeddb-worker": "./src/vector/indexeddb-worker.js",
|
||||
@ -301,10 +310,6 @@ module.exports = (env, argv) => {
|
||||
chunkFilename: "bundles/[hash]/[name].js",
|
||||
},
|
||||
|
||||
// This makes the sourcemaps human readable for developers. We use eval-source-map
|
||||
// because the plain source-map devtool ruins the alignment.
|
||||
devtool: "eval-source-map",
|
||||
|
||||
// configuration for the webpack-dev-server
|
||||
devServer: {
|
||||
// serve unwebpacked assets from webapp.
|
||||
|
Loading…
Reference in New Issue
Block a user