davidguttman / cssify

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

How I can set auto-inject false in cli and grunt-browserify? #16

Closed caoglish closed 8 years ago

caoglish commented 10 years ago

I saw your code has options call 'auto-inject', How I can set false value to auto-inject options in command line?

also If I want to use grunt-browserify, how I can set false value in auto-inject in grunt-browserify?

The reason I doing this: I am thinking of developing a greasemonkey script by using browserify. so I can separate css and js file in dev project folder and build them together.

if I can get this work. I can do the following code:

var css=require("./style.css");
GM_addStyle("css");

I know require("./style.css") can do the same, however I like to try auto-inject:false option

faergeek commented 8 years ago

For now you can pass --auto-inject= for now (yes, just nothing after =). Sorry if it's toooooo late for response.

@davidguttman What about supporting --no-auto-inject flag or something like that for convenience?

davidguttman commented 8 years ago

Sounds good

faergeek commented 8 years ago

Now you can pass --no-auto-inject flag to disable auto-injection