This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importScripts('https://unpkg.com/[email protected]/build/importScripts/workbox-sw.dev.v0.0.2.js'); | |
importScripts('https://unpkg.com/[email protected]/build/importScripts/workbox-google-analytics.prod.v1.0.0.js'); | |
const workboxSW = new WorkboxSW({clientsClaim: true}); | |
workbox.googleAnalytics.initialize(); | |
workboxSW.router.registerRoute( | |
/\.?!(html)$/, | |
workboxSW.strategies.cacheFirst({ | |
cacheName: 'assets', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ecmaFeatures": { | |
"impliedStrict": true | |
}, | |
"rules": { | |
"eqeqeq": 1, | |
"indent": [2, "tab", {"SwitchCase": 1}], | |
"no-unused-vars": 1, | |
"curly": 1, | |
"no-multi-spaces": 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Some references: | |
# by Huber Flores: | |
# https://gist.github.com/huberflores/4687766 | |
# https://gist.github.com/huberflores/9886339 | |
# https://gist.github.com/huberflores/4714824 | |
# by Hai on StackOverflow: | |
# http://stackoverflow.com/questions/14951374/didnt-find-class-foo-on-path-dexpathlist | |
# AOSP tutorial: https://source.android.com/source/index.html | |