Skip to content

incorrect export of locals #112

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

Closed
Coobaha opened this issue Jul 20, 2015 · 2 comments
Closed

incorrect export of locals #112

Coobaha opened this issue Jul 20, 2015 · 2 comments

Comments

@Coobaha
Copy link

Coobaha commented Jul 20, 2015

if there is a ch in local class like: :local .gсh - loader will strip all after ch,
so {g: 'generatedClassName'} will be exported
strange stuff.. :)

:local(.withSearсhButton)
  :local(.allOptions)
    display none

:local(.withSearсhButton)
  color red


:local(.сhButton)
  color green

outputs
Object {withSear: "app-main-components-SearchBar-gg---withSear---psEQw", allOptions: "app-main-components-SearchBar-gg---allOptions---1UsCx"}

config:

css-loader?minimize=false&localIdentName=[path][name]---[local]---[hash:base64:5]

tried versions 0.15.3, 0.15.5

@sokra
Copy link
Member

sokra commented Jul 26, 2015

I first thought: what a weird issue... And I could reproduce it when copying your .withSearсhButton class, but it's fine when I type .withSearchButton ;).

The solution: Your с is not an ASCII c. It just looks like one... No idea how you typed it, but try to use the c key of your keyboard instead 😄

"с".charCodeAt(0)
> 1089
"c".charCodeAt(0)
> 99

@Coobaha
Copy link
Author

Coobaha commented Jul 27, 2015

oh, this is some IDE bug imo, typed a lot of variants. This is russian C, he-he.
thanks :)

@Coobaha Coobaha closed this as completed Jul 27, 2015
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

2 participants