rearanged build items so slowest items are at the end

This commit is contained in:
arzynik 2013-08-13 13:18:52 -07:00
parent c5c973cae9
commit b61cdbd0c2

View File

@ -40,12 +40,6 @@ class Controller_api_build extends Crunchbutton_Controller_Rest {
$files[] = 'audio/crunch.mp3';
$files[] = 'audio/crunch.ogg';
// javascript
$files[] = 'js/bundle.js';
// css
$files[] = 'css/bundle.css';
// fonts
$use = '/fontawesome|opensans/i';
foreach (new DirectoryIterator(c::config()->dirs->www.'assets/fonts') as $fileInfo) {
@ -54,6 +48,12 @@ class Controller_api_build extends Crunchbutton_Controller_Rest {
}
}
// css
$files[] = 'css/bundle.css';
// javascript
$files[] = 'js/bundle.js';
echo json_encode($files);
}
}