Home

Issue: 847

Importing css files and console.log the var return empty object

[issue link]

Currently when we do an import usingimport style from './style.css and do console.log(style), we get an empty object. Hence, I’m thinking that CSSModules are not enabled by default.

I was wondering if we can add in the cssModules at here https://github.com/nuxt/nuxt.js/blob/dev/lib/webpack/helpers.js . The config for css-modules as they recommend is here https://github.com/css-modules/webpack-demo/blob/master/webpack.config.js#L21 .

@Atinux I know that users can customise the above in nuxt.config.js but wondering if it could be enabled by default ?

This question is available on Nuxt.js community (#c725)