lib/propshaft/railtie.rb in propshaft-0.2.2 vs lib/propshaft/railtie.rb in propshaft-0.3.0

- old
+ new

@@ -14,11 +14,15 @@ module Propshaft class Railtie < ::Rails::Railtie config.assets = ActiveSupport::OrderedOptions.new config.assets.paths = [] config.assets.prefix = "/assets" - config.assets.compilers = [ [ "text/css", Propshaft::Compilers::CssAssetUrls ] ] + config.assets.compilers = [ + [ "text/css", Propshaft::Compilers::CssAssetUrls ], + [ "text/css", Propshaft::Compilers::SourceMappingUrls ], + [ "text/javascript", Propshaft::Compilers::SourceMappingUrls ] + ] config.assets.sweep_cache = Rails.env.development? config.after_initialize do |app| config.assets.output_path ||= Pathname.new(File.join(app.config.paths["public"].first, app.config.assets.prefix)) @@ -50,10 +54,10 @@ task precompile: :environment do Rails.application.assets.processor.process end desc "Remove config.assets.output_path" - task clean: :environment do + task clobber: :environment do Rails.application.assets.processor.clean end desc "Print all the assets available in config.assets.paths" task reveal: :environment do