Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]: esbuild minify standalone build #14

Open
simplecommerce opened this issue Oct 1, 2024 · 2 comments
Open

[QUESTION]: esbuild minify standalone build #14

simplecommerce opened this issue Oct 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@simplecommerce
Copy link

Hi, I was using vite-plugin-standalone, and you had exposed the esbuild options so that we could pass additional configurations for the server build, in my case it was the minify option.

I know that your reasoning was the minification would make debugging difficult if it was set true by default.
I was wondering if it would be possible to give us the option to pass these configurations for the standalone build?

If not, I understand, thanks!

Great package by the way, in my previous setup I was using vavite and the plugin in order to achieve what this fixes in a single package, really great.

@brillout brillout added the enhancement New feature or request label Oct 4, 2024
@brillout
Copy link
Member

brillout commented Oct 4, 2024

What's your motivation to minify server code?

@simplecommerce
Copy link
Author

What's your motivation to minify server code?

In my case it greatly reduces the bundle size for publication. For example, in a small test project we saw it go from 17mb without server minification to 10 mb with minification and this was before zipping. (We use zip to publish with Azure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants