-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
Parcel (and maybe other tools) is very picky where @import
rules are allowed, otherwise you get this error message:
🚨 @parcel/transformer-css: @import rules must precede all rules aside from @charset and @layer statements
I tracked down the culprit being this plugin, which prepends @font-face
rules to the very top here:
postcss-font-magician/index.js
Lines 379 to 380 in 2587f19
// prepend the font face rules | |
root.prepend(fontFaceRules); |
Unfortunately I'm not familiar enough to fix it myself, but it would be nice if the @font-face
rules where inserted just after the @import rules
instead.
Metadata
Metadata
Assignees
Labels
No labels