]> source.dussan.org Git - gitea.git/commit
Minify CSS with Lightning CSS (#25754)
authorsilverwind <me@silverwind.io>
Fri, 7 Jul 2023 18:28:48 +0000 (20:28 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jul 2023 18:28:48 +0000 (18:28 +0000)
commit811fc9d49c7f2ef128780d9b1a8dac31831f1f7b
tree0d51ec899026deb2acb6a131c709acae755b60f3
parent3780795b938c8915736d73c416e2a8198920c3de
Minify CSS with Lightning CSS (#25754)

Replace esbuild's rudimentary CSS minifier with [Lightning
CSS](https://github.com/parcel-bundler/lightningcss), which results in
around 4% smaller CSS bundle size, index.css goes from 608K to 584K.

The module is quite new but has active use in the Parcel bundler, and as
of yesterday is also under experimental support in Vite, so I trust it
that bugs will be sorted out quickly.

Before: `assets by path css/*.css 959 KiB`
After: `assets by path css/*.css 933 KiB`

I did give this a cursory test and everything seems to be in order.
package-lock.json
package.json
webpack.config.js