davidguttman / cssify

Simple middleware for Browserify to add css styles to the browser.
122 stars 19 forks source link

After cssifying, required css is equivalane to "module body" #14

Closed gkatsev closed 10 years ago

gkatsev commented 10 years ago

Trying to cssify some CSS, but then contains the text for creating the css and attaching it to module.exportss. Ultimately, my style element contains text like this:

var css = "{{a bunch of css}}"; (require("/Users/gkatsevman/p/player-builder/node_modules/cssify"))(css); module.exports = css;
gkatsev commented 10 years ago

I thik my problem was that somehow I got cssify to run twice, so, the second time it required the module and put that as the css text. It almost created a quine. Not a issue with cssify.