mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
Only use modernizr for public css and js and only load it on the public site
This commit is contained in:
parent
fac4956851
commit
2cab3c0ac0
3 changed files with 2 additions and 2 deletions
|
@ -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"));
|
||||||
|
|
|
@ -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'))
|
||||||
|
|
|
@ -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" />
|
||||||
|
|
Loading…
Reference in a new issue