Skip to content

Commit

Permalink
Fix concat to ensure loader and license are at the top of the file.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Mar 15, 2017
1 parent 544a792 commit 4ddd711
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/javascripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ function collapse(tree, outputFileName) {
var dsGlobal = fs.readFileSync(dsGlobalPath, { encoding: 'utf8' });

var withLoader = merge([tree, loader, license, emberShim]);

return concat(withLoader, {
inputFiles: ['license.js', 'loader.js', '**/*.js'],
headerFiles: ['license.js', 'loader.js'],
inputFiles: ['**/*.js'],
outputFile: '/' + outputFileName,
header: '(function(){ \n"use strict";\n',
footer: '\nrequire("ember-data");\nrequire("ember-load-initializers")["default"](Ember.Application, "ember-data");\n' + dsGlobal + '})();\n' + emberDataShims
Expand Down

0 comments on commit 4ddd711

Please sign in to comment.