Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Loader, dashed to camelCase #163

Open
prionkor opened this issue Aug 30, 2018 · 0 comments
Open

CSS Loader, dashed to camelCase #163

prionkor opened this issue Aug 30, 2018 · 0 comments

Comments

@prionkor
Copy link

Hello,

How do we convert the dashed to camelcase for css class names? I usually do it in webpack.config.js file with the following..

{
loader: 'css-loader',
    options: {
        camelCase: true
    }
}

This doesn't work for me. Probably dva is using something else?

More details

Test.css

.auth-form{
    background: white;
    padding: 20px;
}

TestComponent.js


import style from './Test.css

render(){
    return <form className={style['auth-form']}> ... </form>
}

Need to be able to call style.authForm after import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant