Last active
August 29, 2015 14:25
-
-
Save guilleiguaran/792623df101e756e6670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sprockets' | |
project_root = File.expand_path(File.dirname(__FILE__)) | |
assets = Sprockets::Environment.new(project_root) do |env| | |
env.logger = Logger.new(STDOUT) | |
env.register_transformer 'text/sass', 'text/css', Sprockets::SassCProcessor.new | |
end | |
assets.append_path(File.join(project_root, 'source', 'assets', 'stylesheets')) | |
puts assets.find_asset('application.css') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment