Skip to content
This repository has been archived by the owner on Dec 25, 2018. It is now read-only.

Trouble with class names containing numerals #119

Closed
Cobrarosa opened this issue Aug 3, 2017 · 2 comments
Closed

Trouble with class names containing numerals #119

Cobrarosa opened this issue Aug 3, 2017 · 2 comments

Comments

@Cobrarosa
Copy link

OS: Windows 10
Node: v6.9.5
Webpack: 3.4.1

New to webpack. Trying PurifyCSS. Using class-names with numerals in .scss files will be compiled in the .css file, regardless if the class is present in the template files or not.

Example in template
<div class="test"></div>

Example in .scss file
.test2 { color: red }

Output in .css file
.test2 { color: red }

However, changing the .scss to "test" and the class in the template to "testy" will yield the desired result (omitting the "test" class from the compiled css).

It seems PurifyCSS does not recognize class names with numerals in them. Seen other issues addressing this issue when using CSS frameworks like bootstrap, who has plenty of numeral-based class-names.

Is there something that can be done about this?

@michael-ciniawsky
Copy link
Member

@Cobrarosa See @zackkrida's comment. @zackkrida Thx 👍

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