- fixing weird double negative thing on line 22

- using unpackages/unoptimized modernizr when in the WordPress development environment
This commit is contained in:
Julien Melissas
2014-04-05 00:03:24 -04:00
parent b4c7b9b4b2
commit ea35b85da7

View File

@@ -19,7 +19,7 @@ function roots_scripts() {
* The build task in Grunt renames production assets with a hash
* Read the asset names from assets-manifest.json
*/
if (!(WP_ENV === 'development')) {
if (WP_ENV !== 'development') {
$get_assets = file_get_contents(get_template_directory_uri() . '/assets/manifest.json');
$assets = json_decode($get_assets, true);
$assets = array(
@@ -32,7 +32,7 @@ function roots_scripts() {
$assets = array(
'css' => '/assets/css/main.css',
'js' => '/assets/js/scripts.js',
'modernizr' => '/assets/js/vendor/modernizr.min.js',
'modernizr' => '/assets/vendor/modernizr/modernizr.js',
'jquery' => '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js'
);
}