Implement JSON file based asset pipeline

Adds manifest.json which contains all of the mappings for the assets
ref: https://github.com/roots/roots/pull/1138#issuecomment-62593715

Prune and update NPM deps
This commit is contained in:
Austin Pray
2014-11-23 21:53:18 -06:00
parent 75db78a9a1
commit e2091ef880
5 changed files with 179 additions and 88 deletions

View File

@@ -8,7 +8,7 @@
* Enqueue scripts in the following order:
* 1. jquery-1.11.1.js via Google CDN
* 2. /theme/dist/scripts/modernizr.js
* 3. /theme/dist/scripts/scripts.js
* 3. /theme/dist/scripts/app.js
*
* Google Analytics is loaded after enqueued scripts if:
* - An ID has been defined in config.php
@@ -54,7 +54,7 @@ function roots_assets() {
wp_enqueue_script(roots_asset_path('scripts/modernizr.js'), array(), null, true);
wp_enqueue_script('jquery');
wp_enqueue_script('roots_js', roots_asset_path('scripts/scripts.js'), array(), null, true);
wp_enqueue_script('roots_js', roots_asset_path('scripts/app.js'), array(), null, true);
}
add_action('wp_enqueue_scripts', 'roots_assets', 100);