mirror of
https://github.com/FMS-Cat/condition.git
synced 2025-08-31 00:59:52 +02:00
size: mangler hell
This commit is contained in:
17
README.md
17
README.md
@@ -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
|
||||
|
Reference in New Issue
Block a user