webpack css-loader localIdent name hash length
问题 I use webpack and css-loader , and in my css-loader config I use these options: options: { importLoaders: 1, modules: true, localIdentName: '[hash:base64:3]' } Just like you see, it is obvious that I desire all of my class name will have 3 characters, and after build absolutely my desire come true but there is a very big issue. Some class names has same name! (conflict!) for example: ._1mk { /*dev name was .home*/ color: red; } /*line 90*/ and ._1mk { /*dev name was .news*/ color: blue; }