feat(vite): add Cloudflare async script and style tag attributes
This commit is contained in:
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
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 @@ class AppServiceProvider extends ServiceProvider
|
||||
$this->configurePasswords();
|
||||
$this->configureSanctumModel();
|
||||
$this->configureGitHubHttp();
|
||||
|
||||
Vite::useScriptTagAttributes([
|
||||
'data-cfasync' => 'false',
|
||||
]);
|
||||
|
||||
Vite::useStyleTagAttributes([
|
||||
'data-cfasync' => 'false',
|
||||
]);
|
||||
}
|
||||
|
||||
private function configureCommands(): void
|
||||
|
Reference in New Issue
Block a user