laynezh / vite-plugin-lib-assets

A Vite Plugin extracts resource files referenced in library mode instead of embedded them as base64.
MIT License
93 stars 9 forks source link

Not working for scss import fonts #9

Closed philipp-winterle closed 1 year ago

philipp-winterle commented 1 year ago

Copied config from your playground and tried with minimal config.

test.scss @import "@fontsource/poppins/index.css";

lib entry is entry: { mainCss: "./test.scss", // Entry CSS path },

css font url still inlined as base64

coder-layne commented 1 year ago

Try v0.4.0, and the playground has also been updated with the scenarios you mentioned.