-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Using PostCSS and composing a class from a different file #137
Comments
I found #131
|
That's not the correct way. See https://github.com/webpack/css-loader#importing-and-chained-loaders You need to use |
Thanks for the tip. I missed that in the docs. |
@ericmatthys close the issue |
For webpack v2: {
loader: 'css-loader',
options: {
importLoaders: 1 // 0 => no loaders (default); 1 => postcss-loader; 2 => postcss-loader, sass-loader
}
} |
this is actually not working for me. Only works passing my webpack configuration has a importsLoaders with 1 (which is postcss-loader right after css-loader) but still doesn't work: every file requested from within css-modules composes method are not passing via the postcss-loader. working with Vuejs with the following setup:
thanks anyone for help cheers |
This thread is outdated, but for anyone still searching... Setting |
I am using PostCSS with the simple vars plugin, as an example. I have the loaders set up like:
In that example,
link2
won't be run through PostCSS so the variable won't be replaced, but the variable inlink1
will be replaced. If I remove thecomposes
, bothlink1
andlink2
are run through PostCSS and both variables are correctly replaced.The text was updated successfully, but these errors were encountered: