jfa-pwa-toolkit
Version:
⚡ PWA Features to Any Website (very Fast & Easy)
29 lines (24 loc) • 768 B
JavaScript
/**
* _ __ ___
* _ | |/ _|__ _| \ _____ __
* | || | _/ _` | |) / -_) V /
* \__/|_| \__,_|___/\___|\_/
* https://jordifernandes.com
*
* sw.js (2019-05-23T15:35:14-03:00)
*
* @package: jfa-pwa-toolkit
* @author: Jordi Fernandes Alves <jfadev@gmail.com>
* @version: 1.0.0
* @license: MIT License
* @link: https://github.com/jfadev/jfa-pwa-toolkit/
* @docs: https://github.com/jfadev/jfa-pwa-toolkit/blob/master/README.md
*/
const ROOT_DIR = '{{root-dir}}';
const SW_DIR = '{{sw-dir}}';
const CONFIG_DIR = '{{config-dir}}';
const MANIFEST_DIR = '{{manifest-dir}}';
// Import configs
importScripts(CONFIG_DIR + 'pwa.config.js');
// Import Main Service Worker
importScripts(SW_DIR + 'sw.js');