mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-20 04:22:39 -05:00
66afabcf4c
stripping postfixes is wasteful and uneeded. It messes up our build
14 lines
459 B
Ruby
14 lines
459 B
Ruby
|
|
task 'assets:precompile:before' do
|
|
|
|
unless %w{profile production}.include? Rails.env
|
|
raise "rake assets:precompile should only be run in RAILS_ENV=production, you are risking unminified assets"
|
|
end
|
|
|
|
# in the past we applied a patch that removed asset postfixes, but it is terrible practice
|
|
# leaving very complicated build issues
|
|
# https://github.com/rails/sprockets-rails/issues/49
|
|
end
|
|
|
|
task 'assets:precompile' => 'assets:precompile:before'
|
|
|