Ability to get environment to be able to manually configure
dmyers opened this issue · comments
Derek Myers commented
What do you think?
Samuel C. Tyler commented
I like this idea. I plan on implementing this on my fork. I will put in a Pull Request when I am done.
Samuel C. Tyler commented
Pull Request #28 resolves this. You can do the following in your app.rb, you can now pass a block to sprockets
which allows you to edit the Sprockets Environment, as such:
sprockets :minify=>true , :js_compressor => UglifierWithSourceMapCompressor do |env|
env.css_compressor = :scss
# from http://blog.alexmaccaw.com/faster-deploys
env.cache = Sprockets::Cache::MemcacheStore.new
end
I would love it if you could test it out for me and let me know if it suits your needs.