Open unikitty37 opened 2 years ago
Running into something like this; @unikitty37 did you end up having luck here?
Unfortunately not; the project in question ended up getting switched to Svelte, and the default Svelte setup strips inline comments correctly without needing postcss-strip-inline-comments, so I've not really looked any further into this.
Comments are not getting stripped for me with this postcss.config.js:
is output as
and the style is not applied in the browser as the parser gives up at the invalid
//
.If I change
syntax: 'postcss-scss'
toparser: 'postcss-scss'
the style is applied in the browser, but the output is nowand the effect is exactly the same as not installing postcss-strip-inline-comments.
My package.json:
and the processing is run with
yarn build:css --watch
. The yarn.lock shows postcss-scss version 4.0.4 and postcss-strip-inline-comments version 0.1.5.I'm really not sure whether I've run into a bug or just misconfigured something. I thought it might be related to the comment being in a sheet imported using
@import
via postcss-import, but the same problem occurs in the entrypoint application.postcss.css.