Skip to content

Commit

Permalink
feat(gatsby-plugin-less): add support for overriding the default opti…
Browse files Browse the repository at this point in the history
…ons of `css-loader` (#9237)

Yay! 💖

<hr />
Closes #9142.
  • Loading branch information
yeskunall authored and pieh committed Oct 22, 2018
1 parent 337dab7 commit ba82bc4
Show file tree
Hide file tree
Showing 4 changed files with 222 additions and 92 deletions.
16 changes: 16 additions & 0 deletions packages/gatsby-plugin-less/README.md
Expand Up @@ -31,6 +31,22 @@ plugins: [
]
```

If you need to override the default options passed into [`css-loader`](https://github.com/webpack-contrib/css-loader)

```javascript
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-less`,
options: {
cssLoaderOptions: {
camelCase: false,
},
},
},
]
```

### With CSS Modules

Using CSS modules requires no additional configuration. Simply prepend `.module` to the extension. For example: `App.less` -> `App.module.less`.
Expand Down

0 comments on commit ba82bc4

Please sign in to comment.