lumeland/lume

How to include/inline external CSS (npm | cdn)

Closed this issue · 0 comments

Discussed in #621

Originally posted by boeckMt June 24, 2024
Is it possible to include/inline non-local (css) styles so that they are all fetched at build time?
For example, the site depends on a CSS framework that is published on npm or at unpkg.com.

The ESbuild plugin already has the ability to import from npm: | jsr: | esm.sh
I tried to make it work by including the css file in ESbuild, but without success, maybe I am doing something wrong.

Allow to import files from npm and jsr from postcss and lightningcss plugins