-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Thanks for the great plugin - especially to fix vitejs/vite#3924 when using lazy loaded components in Vite.
What's the preferred way to handle multiple rules, if possible?
To avoid another config I have my postcss set in my vite.config, which has to use the Array formatting, and this seems to work.
postcss: {
plugins: [
require('postcss-assign-layer')({
include: '**/styles/**.{css,scss}',
layerName: 'base',
}),
require('postcss-assign-layer')({
include: '**/components/**/*.{css,scss}',
layerName: 'components',
}),
require('postcss-assign-layer')({
include: '**/templates/**.{css,scss}',
layerName: 'templates',
}),
]
},
Metadata
Metadata
Assignees
Labels
No labels