Skip to content

Commit

Permalink
Remove Modernizr
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Oct 10, 2015
1 parent 5def47b commit 4281e6f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions assets/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
},
"jquery.js": {
"bower": ["jquery"]
},
"modernizr.js": {
"bower": ["modernizr"]
}
},
"config": {
Expand Down
4 changes: 0 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
"license": "MIT",
"private": true,
"dependencies": {
"modernizr": "2.8.2",
"bootstrap-sass": "3.3.5"
},
"overrides": {
"modernizr": {
"main": "./modernizr.js"
},
"bootstrap-sass": {
"main": [
"./assets/stylesheets/_bootstrap.scss",
Expand Down
8 changes: 0 additions & 8 deletions lib/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@

/**
* Scripts and stylesheets
*
* Enqueue stylesheets in the following order:
* 1. /theme/dist/styles/main.css
*
* Enqueue scripts in the following order:
* 1. /theme/dist/scripts/modernizr.js
* 2. /theme/dist/scripts/main.js
*/

class JsonManifest {
Expand Down Expand Up @@ -72,7 +65,6 @@ function assets() {
wp_enqueue_script('comment-reply');
}

wp_enqueue_script('modernizr', asset_path('scripts/modernizr.js'), [], null, true);
wp_enqueue_script('sage/js', asset_path('scripts/main.js'), ['jquery'], null, true);
}
add_action('wp_enqueue_scripts', __NAMESPACE__ . '\\assets', 100);

0 comments on commit 4281e6f

Please sign in to comment.