Removing minify for production executables

I don’t see a clear benefit in minifying the servers’ code as the project is open source. It makes the code harder to debug and it doesn’t speed up the server. The only upside is a sightly smaller executable.

Just to be clear: I’m talking about the servers’ code, not the frontend’s code.

You can disable minification by setting the env variable NODE_ENV to anything other than production when compiling.

NODE_ENV=foo npm run build

If you’d like to disable minification for only the backend, you can edit build/build.ts. Change line 265 from:

    minify: MODE === "production",

to

    minify: false,
1 Like

Thanks! Changing the build/build.ts seems the solution that will work best for me.