abell
abell copied to clipboard
Minify Build Output
Is your feature request related to a problem? Please describe.
The current abell build
output is not minified. If we minify it can decrease the bundle size and eventually help loading it faster
Describe the solution you'd like
We have few ways to implement this,
- Have it integrated inside abell so we will minify before we call fs.writeFile
- Build a separate plugin that reads output files and writes the minified text into it.
The first one will be ideal if we find a minifier which has less or almost no subdependencies.
If the minifier has a large dependency tree, it will be better to maintain it separately as part of official plugin. In this case we can keep it preinstalled in some of the starters. Also with this user can opt out if they are building a small website where minifying isn't needed
I have created a plugin for this, especially for html. Probably will add some more features to it. https://www.npmjs.com/package/abell-html-minifier
Closing this since we have plugin for minification in abell v0 and abell v1 might already have js and css etc minified because of vite. Thanks for the help 👯