Closed papermana closed 7 years ago
Yes.
If I define a kebab-case class in an .scss file, it should get converted to a CamelCase automatically. This does not currently happen.
.scss
If I create a stylesheet with
.foo-bar { ... }
in it, and then import it in my .js file, I should get an object like
.js
{ fooBar: 'someHashedClassName', }
When imported,
returns a file like this:
{ 'foo-bar': 'someHashedClassName', }
Node: v8.2.1 NPM: 5.3.0 MacOS 10.12.6
Will do. camelCase option in: https://github.com/webpack-contrib/css-loader#options
camelCase
Added in latest version (1.0.2) of netguru-react-scripts. Upgrade the package: yarn upgrade netguru-react-scripts
yarn upgrade netguru-react-scripts
Can you reproduce the problem with latest npm?
Yes.
Description
If I define a kebab-case class in an
.scss
file, it should get converted to a CamelCase automatically. This does not currently happen.Expected behavior
If I create a stylesheet with
in it, and then import it in my
.js
file, I should get an object likeActual behavior
When imported,
returns a file like this:
Environment
Node: v8.2.1 NPM: 5.3.0 MacOS 10.12.6