rtsao / csjs

:sparkles: Modular, scoped CSS with ES6
MIT License
576 stars 32 forks source link

a hacky unscoped option for csjs `require("csjs/unscoped") #31

Closed SilentCicero closed 7 years ago

SilentCicero commented 8 years ago

I added a simple, minimally invasive bypass option to the scopify module.

Then I added a meta-function to the main csjs module, that builds the returned csjs method with either scoped class names or non-scoped class names.

This should probably be re-designed in the end, but it should work for now, with minimal changes to csjs.

now you can require("csjs/unscoped")

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-1.4%) to 98.649% when pulling 74fa00f82434feeb8a0039d8b9a4a3c0b4835853 on SilentCicero:master into 695d7820f61e7c6bae6b264f8bde3b8e444289dc on rtsao:master.

rtsao commented 7 years ago

This has since been implemented 😄