This plugin seems like the tool I need, but the output always seems to be empty.
var styles = {} // this is always empty
Could this be an issue with the .babelrc?
{
"presets": [
"es2015",
"stage-0",
"react"
],
"plugins": [
[
"css-modules-transform", {
"camelCase": true,
"extractCss": "./build/styles/app.css",
"generateScopedName": "[name]__[local]___[hash:base64:5]",
"prepend": [
"postcss-cssnext",
"postcss-extend",
"postcss-import"
]
}
]
]
}
This plugin seems like the tool I need, but the output always seems to be empty.
Could this be an issue with the
.babelrc?{ "presets": [ "es2015", "stage-0", "react" ], "plugins": [ [ "css-modules-transform", { "camelCase": true, "extractCss": "./build/styles/app.css", "generateScopedName": "[name]__[local]___[hash:base64:5]", "prepend": [ "postcss-cssnext", "postcss-extend", "postcss-import" ] } ] ] }