File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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';
390390
391391### ` importLoaders `
392392
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.
396394
397395** webpack.config.js**
398396``` js
399397{
400398 test: / \. css$ / ,
401399 use: [
400+ ' style-loader' ,
402401 {
403402 loader: ' css-loader' ,
404403 options: {
405- importLoaders: 1
404+ importLoaders: 1 // 0 => no loaders (default); 1 => postcss-loader; 2 => postcss-loader, sass-loader
406405 }
407406 },
408- ' postcss-loader'
407+ ' postcss-loader' ,
408+ ' sass-loader'
409409 ]
410410}
411411```
You can’t perform that action at this time.
0 commit comments