feat(vite): add Cloudflare async script and style tag attributes
This commit is contained in:
parent
f554764b55
commit
98a9985dce
1 changed files with 9 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Vite;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Validation\Rules\Password;
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
|
@ -28,6 +29,14 @@ public function boot(): void
|
|||
$this->configurePasswords();
|
||||
$this->configureSanctumModel();
|
||||
$this->configureGitHubHttp();
|
||||
|
||||
Vite::useScriptTagAttributes([
|
||||
'data-cfasync' => 'false',
|
||||
]);
|
||||
|
||||
Vite::useStyleTagAttributes([
|
||||
'data-cfasync' => 'false',
|
||||
]);
|
||||
}
|
||||
|
||||
private function configureCommands(): void
|
||||
|
|
|
|||
Loading…
Reference in a new issue