FEATURE: add scripts and styles into gulpfile

This commit is contained in:
Michal Kváček
2017-02-10 02:13:03 +01:00
parent 724478d0c9
commit 0d22a14604
11 changed files with 548 additions and 74 deletions
+4 -5
View File
@@ -11,15 +11,15 @@
<link rel="stylesheet" href="{{asset('public/css/admin/style.css')}}">
@yield('stylesheets')
<script>
window.assetsPath = "{{asset('resources/assets/admin')}}";
window.cssPath = "{{asset('public/css/admin')}}";
var themeSettings = (localStorage.getItem ('themeSettings')) ? JSON.parse (localStorage.getItem ('themeSettings')) :
{};
var themeName = themeSettings.themeName || '';
if (themeName) {
document.write ('<link rel="stylesheet" id="theme-style" href="{{asset('resources/assets/admin/css/')}}/app-' + themeName + '.css">');
document.write ('<link rel="stylesheet" id="theme-style" href="{{asset('public/css/admin/')}}/app-' + themeName + '.css">');
} else {
document.write ('<link rel="stylesheet" id="theme-style" href="{{asset('resources/assets/admin/css/')}}/app.css">');
document.write ('<link rel="stylesheet" id="theme-style" href="{{asset('public/css/admin/')}}/app.css">');
}
</script>
</head>
@@ -76,8 +76,7 @@
<!-- /.modal-dialog -->
</div>
<script src="{{asset('resources/assets/admin/js')}}/vendor.min.js"></script>
<script src="{{asset('resources/assets/admin/js')}}/app.js"></script>
<script src="{{asset('public/js/vendor.js')}}"></script>
@yield('javascripts')