-
-
Notifications
You must be signed in to change notification settings - Fork 608
About importloaders usage problem #528
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
Comments
@Malenconiaprincep Request@import './foo.scss'; require('./~/css-loader!~/loader1!~/loader2!/./file.css')
Example@import './foo.css'; /* Request 0 */
.class { color: red; } /* Request 1 */ // Internal CSS representation, created by css-loader
// [ [module.id, module.css, module.map] ]
[
[0, css, map] // @import
[1, css, map] // file.css
] |
I mainly stressed the point that set 0 postcss - loaders plugins should not work, So the css should't show Example
The flollwing results is my suppose importLoaders:1
importLoaders:0
Whatever I changed to 0 or 1, said it out of the results are the same, the result
|
I'm not sure I got it to 💯 , but that's not how importLoaders work, it only affects |
loader: 'postcss-loader',
options: {
plugins:[
- require('autoprefixer'),
require('postcss-import'),
require('precss'),
+ require('autoprefixer'),
]
}
} |
I finally understand thanks you very much |
webpack.config.js
This is my webpack config
I try to modify
importLoaders
value , Whatever I changed to 0 or 1, said it out of the results are the same, I suppose if set 0 that postcss-loader can't work , Let me feel confused is that it is still at work, Please explain the reasons Thank you very much ~The text was updated successfully, but these errors were encountered: