-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
What style-loaders expects as input? #552
Comments
Pipeline is simple
In other hard - |
So if you need another logic than apply styles to DOM you can use own loader, but it is rare or specific usage |
Thank you, |
@alexander-akait Is this one added? If so then this can be closed. If not, I can help update the website of webpack later this/next month. |
@nyngwang Yeah, feel free to send a PR to our docs, still not documented |
Documentation Is:
Please Explain in Detail...
Hi,
In the docs, it reads
but it doesn't say anything about alternatives. I'm trying to learn how this whole webpack pipeline fits together. From what I can tell (based on this, bunch of stackoverflow questions: 1, 2, 3, 4 and probably more)
css-loader
takes the css files (after everything else like sass, postcss, etc have done their work and right beforestyle-loader
) and outputs js which are then given tostyle-loader
. Finally, based on configuration, the output is then javascript which injects the style in DOM.What EXACTLY is
style-loader
expecting as input? I tried to input css files and it didn't work.I'm asking this for my own curiosity, but if someone were to actually write another
css-loader
to work withstyle-loader
, there is no documentation for it.Your Proposal for Changes
Write documentation!
The text was updated successfully, but these errors were encountered: