Skip to content

Instantly share code, notes, and snippets.

View EmmanuelObua's full-sized avatar
🏠
Working from home

Emmanuel Obua EmmanuelObua

🏠
Working from home
View GitHub Profile
const preLoad = function () {
/** Open a cache with a name offline*/
return caches.open("offline").then(function (cache) {
/** add the all the files in the array to the cache called offline*/
return cache.addAll(filesToCache);
});
};
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="title" content="InfyBonus">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.error_body {
{
"name": "Laravel Pwa Package Tutorial",
"short_name": "LPT",
"start_url": "/index.php",
"background_color": "#6777ef",
"description": "Tutorial of Laravel Package",
"display": "fullscreen",
"theme_color": "#6777ef",
"icons": [
{
<?php
namespace LdTalent\Pwa;
use Illuminate\Support\Facades\Facade;
class PwaFacade extends Facade
{
/**
<?php
namespace LdTalent\Pwa;
use Illuminate\Support\ServiceProvider;
use LdTalent\Pwa\Commands\PublishPwaAssets;
class PwaServiceProvider extends ServiceProvider
{
{
"name": "ldtalent/pwa-laravel",
"description": "A laravel package for publishing essential assets for making a laravel app a pwa",
"type": "composer-package",
"license": "MIT",
"authors": [
{
"name": "Emmanuel Obua",
"email": "eobua6882@gmail.com"
}
"autoload": {
"psr-4": {
"LdTalent\\Pwa\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"\\LdTalent\\Pwa\\PwaServiceProvider"
],
"require": {
"php": ">=5.6",
"illuminate/support": ">=5.4"
}
@EmmanuelObua
EmmanuelObua / .npmignore
Created June 20, 2021 08:52
ignore some files from npm
css
images
js
index.html