Xpra: Ticket #2709: use terser for minification

terser

The main difficulty is to ensure this is installed on all the build environment as there aren't many packages for it...



Mon, 06 Apr 2020 09:18:50 GMT - brief:

Do you plan to use terser standalone? Or in combination with webpack (can bundle assets)?

If nodejs is used, I would also use forge.js as a dependency (as well as the other libraries if possible).


Mon, 06 Apr 2020 09:20:22 GMT - Antoine Martin: status changed

Do you plan to use terser standalone? Or in combination with webpack (can bundle assets)?

I don't know. I profoundly dislike how some of those frameworks make it difficult to deploy things. As things stand, I can just copy the js files, by hand if necessary, and things just work. That's invaluable to me.


Mon, 06 Apr 2020 14:53:54 GMT - brief:

uglifyjs.terser exists in sid, ubuntu (disco, eoan, focal) only. It can be used where available.

If terser is not available, minifyjs or yui compressor is used after let/const is replaced by var. Further JS changes (e.g. ES6) need manual adjustments to be compatible to minifying until terser can be used.

npm is not used to avoid a humongus build dependency, which we can't easily have on MacOS. Furthermore, there should only be one package manager or none (macos).


Sun, 04 Oct 2020 14:30:04 GMT - Antoine Martin: milestone changed


Sat, 23 Jan 2021 05:58:40 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2709