FEATURE: add scripts and styles into gulpfile
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user