size: mangler hell

This commit is contained in:
FMS-Cat
2021-03-27 01:40:50 +09:00
parent 871a569f2a
commit bdf5d8ca01
29 changed files with 289 additions and 389 deletions

View File

@@ -2,9 +2,24 @@
## Build
- You will need [`shader_minifier.exe`](https://github.com/laurentlb/Shader_Minifier) in your PATH
- You will need these stuff in your PATH:
- [`shader_minifier.exe`](https://github.com/laurentlb/Shader_Minifier)
- [`jsexe.exe`](https://www.pouet.net/)
```sh
yarn
yarn build
```
## Minification
[terser's](https://terser.org/docs/api-reference.html) mangler is spicy
you'll die instantly if you access to object properties using a string identifier
see `webpack.config.js` and `src/automaton-fxs/fxDefinitions.ts` for the funny jokes
jsexe is good
note that it cannot parse nowadays ecmascript though
shader minifier is way too spicy so I made a [separate document](./shader-minifier-tips.md)
libopus is cheating