From b61cdbd0c226ca99eac38d5bfc5fa170d1e6c9bf Mon Sep 17 00:00:00 2001 From: arzynik Date: Tue, 13 Aug 2013 13:18:52 -0700 Subject: [PATCH] rearanged build items so slowest items are at the end --- .../default/crunchbutton/api/build/index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/controllers/default/crunchbutton/api/build/index.php b/include/controllers/default/crunchbutton/api/build/index.php index 775336a6c..e68b2092e 100644 --- a/include/controllers/default/crunchbutton/api/build/index.php +++ b/include/controllers/default/crunchbutton/api/build/index.php @@ -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); } }