How to include/inline external CSS (npm | cdn) #621
-
Is it possible to include/inline non-local (css) styles so that they are all fetched at build time? The ESbuild plugin already has the ability to import from The other idea was to use the postcss includes, but there it is only possible to get content that is in the root folder. const userCache = join(Deno.env.get("LOCALAPPDATA") || "", "deno/npm/registry.npmjs.org");
site.use(postcss(
{ includes: userCache }
)); I tried |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can define external resources with remote files feature. |
Beta Was this translation helpful? Give feedback.
I just added support for npm specifiers, so you can do this:
It will be available in the next version of Lume. If you want to try it now, you can upgrade to the latest development version with
deno task lume upgrade --dev
.