Stencil version:
v1.9.x with --next or >= v1.10.x
I'm submitting a:
[X] bug report
Current behavior:
With the new compiler, CSS aren't imported anymore. In our code highlighter component is use both sass() and postcss plugins. In the sass file I specify the following import:
@import "~prismjs/themes/prism.css";
which until v.1.9.x with --legacy compiler had for effect to include (import) the related css into the bundle.
with the new compiler, the CSS code isn't imported anymore. I found many occurrences of @import "~prismjs/themes/prism.css"; in my dist folder where actually I should find none but rather the effective CSS code.
Steps to reproduce:
Use https://github.com/deckgo/deckdeckgo/tree/master/webcomponents/highlight-code
Play with the @stencil/core version.
Config:
plugins: [
sass(),
postcss({
plugins: [autoprefixer()]
})
]
stencil/postcss": "^1.0.1",
stencil/sass": "^1.1.1"
Stencil version:
v1.9.x with
--nextor >= v1.10.xI'm submitting a:
[X] bug report
Current behavior:
With the new compiler, CSS aren't imported anymore. In our code highlighter component is use both
sass()andpostcssplugins. In thesassfile I specify the following import:which until v.1.9.x with
--legacycompiler had for effect to include (import) the related css into the bundle.with the new compiler, the CSS code isn't imported anymore. I found many occurrences of
@import "~prismjs/themes/prism.css";in mydistfolder where actually I should find none but rather the effective CSS code.Steps to reproduce:
Use https://github.com/deckgo/deckdeckgo/tree/master/webcomponents/highlight-code
Play with the
@stencil/coreversion.Config:
stencil/postcss": "^1.0.1",
stencil/sass": "^1.1.1"