The following CSS is invalid as the @import is not consecutive.
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@100;200;300;400;500;600;700&display=swap');
@layer reset, base, variant, state, component;
@import url(./tester.css) layer(base);
Reproduction: https://stackblitz.com/edit/template-sapphi-red-postcss-sass-nzjc5c?file=postcss.js,src%2Finput.css
If this CSS is input, postcss-import outputs the following warning:
@import must precede all other statements (besides @charset or empty @layer)
This message is true, but doesn't apply to this input. @import does precede all other statements besides empty @layer.
In this case, I think the warning message needs to be something like "@import must be consecutive".
The following CSS is invalid as the
@importis not consecutive.Reproduction: https://stackblitz.com/edit/template-sapphi-red-postcss-sass-nzjc5c?file=postcss.js,src%2Finput.css
If this CSS is input, postcss-import outputs the following warning:
This message is true, but doesn't apply to this input.
@importdoes precede all other statements besides empty@layer.In this case, I think the warning message needs to be something like "
@importmust be consecutive".