abell icon indicating copy to clipboard operation
abell copied to clipboard

Minify Build Output

Open saurabhdaware opened this issue 3 years ago • 1 comments

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

saurabhdaware avatar Aug 15 '20 17:08 saurabhdaware

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

PiyushSuthar avatar Sep 26 '20 13:09 PiyushSuthar

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 👯

saurabhdaware avatar Sep 28 '22 15:09 saurabhdaware