File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -390,22 +390,22 @@ import { className } from 'file.css';
390
390
391
391
### ` importLoaders `
392
392
393
- The query parameter ` importLoaders ` allow to configure which loaders should be applied to ` @import ` ed resources.
394
-
395
- ` importLoaders ` : That many loaders after the css-loader are used to import resources.
393
+ The query parameter ` importLoaders ` allows to configure how many loaders before ` css-loader ` should be applied to ` @import ` ed resources.
396
394
397
395
** webpack.config.js**
398
396
``` js
399
397
{
400
398
test: / \. css$ / ,
401
399
use: [
400
+ ' style-loader' ,
402
401
{
403
402
loader: ' css-loader' ,
404
403
options: {
405
- importLoaders: 1
404
+ importLoaders: 1 // 0 => no loaders (default); 1 => postcss-loader; 2 => postcss-loader, sass-loader
406
405
}
407
406
},
408
- ' postcss-loader'
407
+ ' postcss-loader' ,
408
+ ' sass-loader'
409
409
]
410
410
}
411
411
```
You can’t perform that action at this time.
0 commit comments