-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imported CSS is not compiled/transformed #2432
Comments
Made some progress in identifying the issue in stencil/src/compiler/style/css-imports.ts Lines 116 to 134 in 39c0a99
Based on the issue reproduction fork, the However in the In summary:
|
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
When importing CSS files, Stencil compiler does not always process each file, creating bundles with with raw/unprocessed CSS.
Given a component using
importUrls
for two separate CSS with identical contents, thedist
generated stylesheets contain different content.Sometimes with the contents of the file being imported, and sometimes just the raw import text (e.g.
@import "~tachyons";
)I also saw hints of race conditions, as sometimes file
A
would be processed, and sometimes fileB
.Screenshot shows results of a single build, and results of two input files (
app-root.css
andapp-root.alt.css
)Expected behavior:
All files being imported by Stencil components should be processed using any plugins, and content inlined in the generated files.
In case there are issues importing or processing files, the compiler should throw an error and fail the build.
Steps to reproduce:
A repository for reproducing the issue can be found here: https://github.com/alex-ketch/stenciljs-postcss-import-issue
Other information:
Possibly related issues:
The text was updated successfully, but these errors were encountered: