Merge pull request #1019 from JulienMelissas/7.0.0

Using un-optimized version of modernizr in dev environment.
This commit is contained in:
Ben Word
2014-04-16 16:02:44 -05:00

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'
);
}