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

如何配置使用cssmodules #63

Open
goodwinfame opened this issue May 4, 2017 · 2 comments
Open

如何配置使用cssmodules #63

goodwinfame opened this issue May 4, 2017 · 2 comments

Comments

@goodwinfame
Copy link

示例里面有用到className={classes.container}
然而并没有生效。
请问如何配置使用cssmodules

@JesseZhao1990
Copy link

修改 webpack.config.js
把 const BASE_CSS_LOADER = 'css?sourceMap&-minimize'
改成 const BASE_CSS_LOADER = 'css?sourceMap&-minimize&module'

试试看看~

@bodyno
Copy link
Owner

bodyno commented Jun 26, 2017

原来是有cssmodules的 后面由于减少复杂度取消了
引入cssmodules很简单的

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

3 participants