Open r0b- opened 7 years ago
@r0b- Yes, it is possible.
But, next time you open an issue, please don't make a question, just state the desired funcionality.
The idea would be to use cssnano (npm install cssnano
??), and call it somewhere in build/build.js
so that the CSS is minified when making a build.
Alternatively, #4586 would cover this too (even though @mourner opposes splitting the CSS)
Recommend to close
@jonkoops would you like to take a look at this, please?
On jsdelivr the file 'dist/leaflet.css' is 558.5KiB :open_mouth:
(It's possible to use jsdelivr's "Auto-optimization" feature, but then one doesn't have SRI.)
@lonix1 come on, that's clearly not the case — even the unminified, uncompressed source code for leaflet.css
is just 12.5KB. Gzipped it's around 3kb. A minified version would also be around 3kb.
@mourner Yes, you're right. The values here are misleading... that is the download count, not the file size! :laughing: :laughing:
JsDelivr's unminified file is 3,814 and its auto-minified file is 3,081, both brotli.
Hi,
is it possible to minimize the CSS before it's pushed to the CDNs?
Thanks Rob