webdeb / next-styles

CSS + SASS + CssModules in Next.js
40 stars 6 forks source link

Feature request: css-loader localsConvention option #2

Closed stasyaner closed 4 years ago

stasyaner commented 4 years ago

Hello. First of all, thank you for your job. Your loader helps a lot. My unpretentious ask is to be able to pass through localsConvention of css-loader from next.config.js. Would help me a lot. Thank you very much.

webdeb commented 4 years ago

Hi, thank you for the feature request, I think it's reasonable to allow any cssLoaderOptions.

webdeb commented 4 years ago

@stasyaner added in 1.0.2

should work by adding cssLoaderOptions like this:

module.exports = withStyles({
  modules: true,
  cssLoaderOptions: {
    localsConvention: 'camelCase',
  }
})

please close that issue if it is working for you, thank you

stasyaner commented 4 years ago

Thanks a lot. Wish you bug free life :)