Add PWA support with service worker, manifest, and offline page
This commit is contained in:
72
config/pwa.php
Normal file
72
config/pwa.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Would you like the install button to appear on all pages?
|
||||
Set true/false
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'install-button' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| PWA Manifest Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
| php artisan erag:update-manifest
|
||||
*/
|
||||
|
||||
// 'manifest' => [
|
||||
// 'name' => 'Digital Manufacturing',
|
||||
// 'short_name' => 'LPT',
|
||||
// 'background_color' => '#6777ef',
|
||||
// 'display' => 'standalone',
|
||||
// 'description' => 'A Progressive Web Application setup for Laravel projects.',
|
||||
// 'theme_color' => '#6777ef',
|
||||
// 'icons' => [
|
||||
// [
|
||||
// 'src' => 'logo.png',
|
||||
// 'sizes' => '512x512',
|
||||
// 'type' => 'image/png',
|
||||
// ],
|
||||
// ],
|
||||
// ],
|
||||
|
||||
'manifest' => [
|
||||
'name' => 'Digital Manufacturing',
|
||||
'short_name' => 'PWA',
|
||||
'start_url' => '/',
|
||||
'background_color' => '#6777ef',
|
||||
'display' => 'fullscreen',
|
||||
'description' => 'A Progressive Web Application setup for Laravel projects.',
|
||||
'theme_color' => '#6777ef',
|
||||
'icons' => [
|
||||
[
|
||||
'src' => 'logo.png',
|
||||
'sizes' => '512x512',
|
||||
'type' => 'image/png',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Debug Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
| Toggles the application's debug mode based on the environment variable
|
||||
*/
|
||||
|
||||
'debug' => env('APP_DEBUG', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Livewire Integration
|
||||
|--------------------------------------------------------------------------
|
||||
| Set to true if you're using Livewire in your application to enable
|
||||
| Livewire-specific PWA optimizations or features.
|
||||
*/
|
||||
|
||||
'livewire-app' => false,
|
||||
];
|
||||
Reference in New Issue
Block a user