Only use modernizr for public css and js and only load it on the public site

This commit is contained in:
Kevin MacMartin 2016-05-23 23:16:04 -04:00
parent fac4956851
commit 2cab3c0ac0
3 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ gulp.task("js-dashboard-libs", function() {
// gulp task for modernizr // gulp task for modernizr
gulp.task("modernizr", function() { gulp.task("modernizr", function() {
var modernizr = gulp.src([ "public/js/*.js", "public/css/*.css" ]) var modernizr = gulp.src([ "public/js/lib.js", "public/js/app.js", "public/css/app.css" ])
.pipe(gModernizr({ tests: modernizrTests, crawl: false })) .pipe(gModernizr({ tests: modernizrTests, crawl: false }))
.pipe(gPlumber(plumberError)) .pipe(gPlumber(plumberError))
.pipe(gConcat("modernizr.js")); .pipe(gConcat("modernizr.js"));

View file

@ -3,7 +3,6 @@
<head> <head>
{!! Head::render() !!} {!! Head::render() !!}
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="/js/modernizr.js"></script>
@yield('page-includes') @yield('page-includes')
@if(Config::get('app.debug')) @if(Config::get('app.debug'))

View file

@ -1,6 +1,7 @@
@extends('layouts.base') @extends('layouts.base')
@section('page-includes') @section('page-includes')
<script src="/js/modernizr.js"></script>
<script src="/js/lib.js"></script> <script src="/js/lib.js"></script>
<script src="/js/app.js"></script> <script src="/js/app.js"></script>
<link rel="stylesheet" href="/css/app.css" /> <link rel="stylesheet" href="/css/app.css" />