Load app.js via bundled resources

This commit is contained in:
David Bomba 2024-01-13 09:48:55 +11:00
parent ade2ca8178
commit a35ca97b3e
9 changed files with 115 additions and 16 deletions

109
public/build/assets/app-01291e40.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@
]
},
"resources/js/app.js": {
"file": "assets/app-253efa47.js",
"file": "assets/app-01291e40.js",
"imports": [
"_index-08e160a7.js",
"__commonjsHelpers-725317a4.js"

3
resources/js/app.js vendored
View File

@ -10,6 +10,9 @@
import axios from 'axios';
import cardValidator from 'card-validator';
import { Livewire } from '../../vendor/livewire/livewire/dist/livewire.esm'
Livewire.start()
window.axios = axios;
window.valid = cardValidator;

View File

@ -67,8 +67,6 @@
<link rel="canonical" href="{{ config('ninja.site_url') }}/{{ request()->path() }}"/>
@livewireStyles
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')

View File

@ -90,7 +90,6 @@
</style>
@endif
@livewireStyles
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')

View File

@ -96,7 +96,6 @@
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')
@livewireStyles
<link rel="stylesheet" type="text/css" href="{{ asset('vendor/cookieconsent@3/cookieconsent.min.css') }}" defer>
</head>

View File

@ -93,7 +93,7 @@
</style>
@endif
@livewireStyles
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')

View File

@ -83,7 +83,7 @@
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')
@livewireStyles
<link rel="stylesheet" type="text/css" href="{{ asset('vendor/cookieconsent@3/cookieconsent.min.css') }}" />
</head>