aanand / deadweight

NOT MAINTAINED
MIT License
1.19k stars 52 forks source link

Made it so you can specify stylesheets as files #26

Closed penguinpowernz closed 5 years ago

penguinpowernz commented 9 years ago

So you can use like this:

    dw = Deadweight.new
    dw.stylesheets = [File.open("css/application.min.css")]
    dw.pages = [File.open("index.html")]
    puts dw.run
jamesarosen commented 9 years ago

This already works:

dw = Deadweight.new
dw.stylesheets = [ 'css/application.min.css' ]
dw.pages = [ 'index.html' ]
puts dw.run

Is there a reason you want to pass files instead of paths?

penguinpowernz commented 9 years ago

Huh, it wasn't working for me... I needed local file checking for checking stuff in a rake task (and possibly automatically chopping classes) before generating assets with sprocket. But I have since gone another direction.