-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError: uninitialized constant Sprockets::SafetyColons #416
Comments
I expanded this out into a full example app here: https://github.com/gilesbowkett/sprockets-issue-416 it uses Rails 4.2, since you said you're on Ruby 2.2.0, and Rails 5 requires 4.2.2. I saw the same error you did, I'm just setting this up as a convenience for the maintainers. |
Thanks. I'm running this in a Cuba (almost vainilla Rake). |
fwiw, I don't think Sprockets uses the there is a |
also, removing the implementation of |
It looks like @blanchma Could you explain your use case, why do you want to unregister it? Semicolon insertion currently needs to be reworked, as it is breaking source maps [#388]. It may be the case that the solution to that fixes your issue? |
Expected behavior
In previous version, I could unregister SafetyColons.
Actual behavior
NameError: uninitialized constant Sprockets::SafetyColons
System configuration
Example App
Rake::SprocketsTask.new do |t|
environment = Sprockets::Environment.new( File.expand_path(File.dirname(FILE)) )
environment.unregister_postprocessor 'application/javascript', Sprockets::SafetyColons
#environment.js_compressor = :uglifier
environment.append_path Bower.environment.directory
environment.append_path 'app/assets/javascripts'
environment.append_path 'app/assets/webpack'
environment.append_path 'app/assets/stylesheets'
#environment.append_path 'public/assets'
t.environment = environment
t.output = "./public/assets"
t.assets = %w( all.js all.css )
end
The text was updated successfully, but these errors were encountered: