Use ember.prod.js when compiling for production
For some reason uflify fails on regular ember.js build. Using production build fixes the problem and we should do it anyway - our assets pipeline does some debug version cleaning, but I'm not sure if it's still compatible with what's done when generating Ember's production build.
This commit is contained in:
parent
e0c062ad15
commit
3d0c215174
|
@ -31,6 +31,11 @@ input assets.scripts do
|
|||
end
|
||||
|
||||
match 'vendor/**/*.js' do
|
||||
if assets.production?
|
||||
reject 'ember.js'
|
||||
else
|
||||
reject 'ember.prod.js'
|
||||
end
|
||||
safe_concat assets.vendor_order, 'vendor.js'
|
||||
end
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ module Travis
|
|||
|
||||
TYPES = [:styles, :scripts, :images, :static, :vendor]
|
||||
VENDOR_ORDER = %w(jquery.min minispade handlebars ember)
|
||||
PRODUCTION_VENDOR_ORDER = %w(jquery.min minispade handlebars ember.prod)
|
||||
SPEC_VENDOR_ORDER = %w(jasmine jasmine-html jasmine-runner sinon)
|
||||
|
||||
attr_reader :roots, :env
|
||||
|
@ -30,7 +31,8 @@ module Travis
|
|||
end
|
||||
|
||||
def vendor_order
|
||||
VENDOR_ORDER.map { |name| "vendor/#{name}.js" }
|
||||
order = production? ? PRODUCTION_VENDOR_ORDER : VENDOR_ORDER
|
||||
order.map { |name| "vendor/#{name}.js" }
|
||||
end
|
||||
|
||||
def spec_vendor_order
|
||||
|
|
Loading…
Reference in New Issue
Block a user