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

Disable css modules for unit tests #703

Closed
znck opened this issue Mar 9, 2017 · 2 comments
Closed

Disable css modules for unit tests #703

znck opened this issue Mar 9, 2017 · 2 comments

Comments

@znck
Copy link
Member

znck commented Mar 9, 2017

Event after setting

cssModules: {
            modules: false,
            localIdentName: '[local]'
          }

class names like foo are transformed to foo_0. There should be a way to disable as unit tests heavily depend on selectors.

@LinusBorg
Copy link
Member

Seems useful to me!

@Jinjiang
Copy link
Member

Jinjiang commented Dec 27, 2017

I find a simple way to keep the same class name by removing the index suffix for the first <style> tag (of course with @znck 's cssModules config). But if there are more than one <style> tag, the index suffix would be appended from the 2nd one.

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

No branches or pull requests

4 participants