Open bitfella opened 5 years ago
Thanks for the report, I'll take a look.
I am encountering the same problem when running postcss-critical-css
from within a CodeKit hook using postcss-cli
.
I am importing scss files which are then compiled to a single css file using CodeKit’s libsass compiler. Said css file then serves as the entrypoint for my PostCSS plugin chain. However, any imported scss file carrying a @critical
rule will result in the console warning mentioned by the OP. It’s worth noting that despite the warning everything compiles correctly.
Hello,
postcss-crititical-css
emits the following annoying console warning several times:when scss (and css as well) entrypoints are passed to Webpack configuration object. This happens when js entrypoints import css/scss files in which
@critical
rules are called.Example:
In this case,
main.js
importsmain.scss
that carries a@critical
rule, whilesite.scss
may or may not carry@critical
rules (both ways will emit warnings).Unfortunately I can't transform scss entrypoints into js ones and there's no way of silence warnings even playing with Webpack's
stats
options.Thanks