diff options
author | silverwind <me@silverwind.io> | 2023-07-07 20:28:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-07 18:28:48 +0000 |
commit | 811fc9d49c7f2ef128780d9b1a8dac31831f1f7b (patch) | |
tree | 0d51ec899026deb2acb6a131c709acae755b60f3 /package.json | |
parent | 3780795b938c8915736d73c416e2a8198920c3de (diff) | |
download | gitea-811fc9d49c7f2ef128780d9b1a8dac31831f1f7b.tar.gz gitea-811fc9d49c7f2ef128780d9b1a8dac31831f1f7b.zip |
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.
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json index da95145e4a..0866f7e2a1 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "jquery.are-you-sure": "1.9.0", "katex": "0.16.8", "license-checker-webpack-plugin": "0.2.1", + "lightningcss-loader": "2.1.0", "mermaid": "10.2.3", "mini-css-extract-plugin": "2.7.6", "minimatch": "9.0.2", |