Skip to content

showbie/purgecss-from-js

 
 

Repository files navigation

purgecss extractor for js files

Same as https://github.com/FullHuman/purgecss-from-js but with naïve support for Ember's classNameBindings micro-syntax.

For example:

The classname binding classNameBindings: 'prop1:foo-bar' will whitelist three strings for purgecss: prop1:foo-bar, prop1, foo-bar.

Similarly, classNameBindings: 'prop2:yay:nay' will whitelist prop2:yay:nay, prop2, yay, nay.

Note that this does not support the dasherization that classNameBindings does by default:

classNameBindings: ['isUrgent'], will whitelist isUrgent, but not is-urgent.

Development

npm test

Deployment

npm run-script build

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%