Skip to content

Commit

Permalink
docs(README): improve importLoaders section and example (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndresx authored and michael-ciniawsky committed Apr 23, 2017
1 parent 2fa64fd commit a5fdf84
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,22 +390,22 @@ import { className } from 'file.css';

### `importLoaders`

The query parameter `importLoaders` allow to configure which loaders should be applied to `@import`ed resources.

`importLoaders`: That many loaders after the css-loader are used to import resources.
The query parameter `importLoaders` allows to configure how many loaders before `css-loader` should be applied to `@import`ed resources.

**webpack.config.js**
```js
{
test: /\.css$/,
use: [
'style-loader',
{
loader: 'css-loader',
options: {
importLoaders: 1
importLoaders: 1 // 0 => no loaders (default); 1 => postcss-loader; 2 => postcss-loader, sass-loader
}
},
'postcss-loader'
'postcss-loader',
'sass-loader'
]
}
```
Expand Down

0 comments on commit a5fdf84

Please sign in to comment.