Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

css classnames #21

Closed
0x80 opened this issue Jun 12, 2015 · 3 comments
Closed

css classnames #21

0x80 opened this issue Jun 12, 2015 · 3 comments

Comments

@0x80
Copy link

0x80 commented Jun 12, 2015

Hi,

Just wondering. Is there an easy way to give the generated local css classnames a more readable name so you can trace them back easily to the css classnames for debugging?

@velveteer
Copy link

@0x80 From the css-loader readme:

You can configure the generated ident with the localIdentName query parameter (default [hash:base64]). Example: css-loader?localIdentName=[path][name]---[local]---[hash:base64:5] for easier debugging.

@0x80
Copy link
Author

0x80 commented Jun 15, 2015

Thanks got it! I was confused by the fact that css-loader in the readme is spelled as css in the config. Same for style-loader vs style etc. Is it just a shorthand or is there a good reason to write it like that?

@bradleyboy
Copy link
Owner

Is it just a shorthand or is there a good reason to write it like that?

It's just shorthand. You can omit -loader in the webpack config for the sake of being concise.

Regarding the localIdentName, I'll get that added by default soon, unless someone wants to submit a PR :)

rxaviers pushed a commit to rxaviers/yarsk that referenced this issue Aug 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants