Skip to content

Commit

Permalink
Made RequireJS optimization work with the new startup sequence
Browse files Browse the repository at this point in the history
Normally `r.js`, the RequireJS optimizer, only pulls in dependencies
listed in top level `require` and `define` clauses.
Because we now most of the app code asynchronously,
namely once the translations are loaded,
this basically rendered optimization useless for us.
This fixes that by also incorporating static nested/asynchronous dependencies.
  • Loading branch information
Julian Kniephoff committed Aug 7, 2017
1 parent 5c3c54d commit f59cb31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ module.exports = function (grunt) {
preserveLicenseComments : false,
optimize : 'uglify',
useStrict : true,
findNestedDependencies : true,
out : '<%= currentProfile.target %>/optimized.js'
}
}
Expand Down

0 comments on commit f59cb31

Please sign in to comment.