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
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:c0202d7a718899265d3ac3e722c8c9449efc633609d691220cc66c5b009b68de
|
oid sha256:47b6aca7fe07f4628b041f32ce813a840793cfdce8ffa27c7ff4562858ac05f9
|
||||||
size 197261
|
size 194245
|
||||||
|
@ -40,6 +40,8 @@ module.exports = ({
|
|||||||
G_ALL_UI_IMAGES: JSON.stringify(utils.getAllResourceImages()),
|
G_ALL_UI_IMAGES: JSON.stringify(utils.getAllResourceImages()),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const minifyNames = environment === "prod";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
entry: {
|
entry: {
|
||||||
@ -91,15 +93,15 @@ module.exports = ({
|
|||||||
parse: {},
|
parse: {},
|
||||||
module: true,
|
module: true,
|
||||||
toplevel: true,
|
toplevel: true,
|
||||||
keep_classnames: false,
|
keep_classnames: !minifyNames,
|
||||||
keep_fnames: false,
|
keep_fnames: !minifyNames,
|
||||||
keep_fargs: false,
|
keep_fargs: !minifyNames,
|
||||||
safari10: true,
|
safari10: true,
|
||||||
compress: {
|
compress: {
|
||||||
arguments: false, // breaks
|
arguments: false, // breaks
|
||||||
drop_console: false,
|
drop_console: false,
|
||||||
global_defs: globalDefs,
|
global_defs: globalDefs,
|
||||||
keep_fargs: false,
|
keep_fargs: !minifyNames,
|
||||||
keep_infinity: true,
|
keep_infinity: true,
|
||||||
passes: 2,
|
passes: 2,
|
||||||
module: true,
|
module: true,
|
||||||
@ -141,8 +143,8 @@ module.exports = ({
|
|||||||
},
|
},
|
||||||
mangle: {
|
mangle: {
|
||||||
eval: true,
|
eval: true,
|
||||||
keep_classnames: false,
|
keep_classnames: !minifyNames,
|
||||||
keep_fnames: false,
|
keep_fnames: !minifyNames,
|
||||||
module: true,
|
module: true,
|
||||||
toplevel: true,
|
toplevel: true,
|
||||||
safari10: true,
|
safari10: true,
|
||||||
@ -154,7 +156,7 @@ module.exports = ({
|
|||||||
braces: false,
|
braces: false,
|
||||||
ecma: es6 ? 6 : 5,
|
ecma: es6 ? 6 : 5,
|
||||||
preamble:
|
preamble:
|
||||||
"/* Shapez.io Codebase - Copyright 2020 Tobias Springer - " +
|
"/* shapez.io Codebase - Copyright 2020 Tobias Springer - " +
|
||||||
utils.getVersion() +
|
utils.getVersion() +
|
||||||
" @ " +
|
" @ " +
|
||||||
utils.getRevision() +
|
utils.getRevision() +
|
||||||
|
Loading…
Reference in New Issue
Block a user