Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

How do I load pico css from node_modules in a svelte-kit app?

$
0
0

Installed with $ npm install @picocss/pico -D

in rollup.config.js:

import css from "rollup-plugin-css-only";...    plugins: [        css({ output: "static/bundle.css" }),    ],

In ./routes/__layout.svelte I have:

<script>    import "../../node_modules/@picocss/pico/css/pico.min.css";</script>

Just get error in UI, and no css /bundle.css exists.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>