Static GitHub Issues

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

prev: Are getters supported in modules mode?
next: how can use postcss in Global css

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 ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c725">#c725</a>)</em></sub></div>