Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 788 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 788 Bytes

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