mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Do not minify names in beta
This commit is contained in:
parent
c9af631a42
commit
724ee92990
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 13 KiB |
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c0202d7a718899265d3ac3e722c8c9449efc633609d691220cc66c5b009b68de
|
||||
size 197261
|
||||
oid sha256:47b6aca7fe07f4628b041f32ce813a840793cfdce8ffa27c7ff4562858ac05f9
|
||||
size 194245
|
||||
|
@ -40,6 +40,8 @@ module.exports = ({
|
||||
G_ALL_UI_IMAGES: JSON.stringify(utils.getAllResourceImages()),
|
||||
};
|
||||
|
||||
const minifyNames = environment === "prod";
|
||||
|
||||
return {
|
||||
mode: "production",
|
||||
entry: {
|
||||
@ -91,15 +93,15 @@ module.exports = ({
|
||||
parse: {},
|
||||
module: true,
|
||||
toplevel: true,
|
||||
keep_classnames: false,
|
||||
keep_fnames: false,
|
||||
keep_fargs: false,
|
||||
keep_classnames: !minifyNames,
|
||||
keep_fnames: !minifyNames,
|
||||
keep_fargs: !minifyNames,
|
||||
safari10: true,
|
||||
compress: {
|
||||
arguments: false, // breaks
|
||||
drop_console: false,
|
||||
global_defs: globalDefs,
|
||||
keep_fargs: false,
|
||||
keep_fargs: !minifyNames,
|
||||
keep_infinity: true,
|
||||
passes: 2,
|
||||
module: true,
|
||||
@ -141,8 +143,8 @@ module.exports = ({
|
||||
},
|
||||
mangle: {
|
||||
eval: true,
|
||||
keep_classnames: false,
|
||||
keep_fnames: false,
|
||||
keep_classnames: !minifyNames,
|
||||
keep_fnames: !minifyNames,
|
||||
module: true,
|
||||
toplevel: true,
|
||||
safari10: true,
|
||||
@ -154,7 +156,7 @@ module.exports = ({
|
||||
braces: false,
|
||||
ecma: es6 ? 6 : 5,
|
||||
preamble:
|
||||
"/* Shapez.io Codebase - Copyright 2020 Tobias Springer - " +
|
||||
"/* shapez.io Codebase - Copyright 2020 Tobias Springer - " +
|
||||
utils.getVersion() +
|
||||
" @ " +
|
||||
utils.getRevision() +
|
||||
|
Loading…
Reference in New Issue
Block a user