Skip to content

Instantly share code, notes, and snippets.

@anteburazer
Created June 5, 2017 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anteburazer/0f1703b0d6a83e1b1b60436e26fd267b to your computer and use it in GitHub Desktop.
Save anteburazer/0f1703b0d6a83e1b1b60436e26fd267b to your computer and use it in GitHub Desktop.
module.exports = {
navigateFallback: '/index.html',
stripPrefix: './dist',
root: '../root/',
staticFileGlobs: [
'./dist/index.html',
'./dist/**.js',
'./dist/**.css',
'./dist/**.ttf',
'./dist/assets/images/*',
'./dist/config/*',
'./dist/i18n/en.json',
'./dist/i18n/hr.json'
],
runtimeCaching: [{
urlPattern: /\/api\/lookup/,
handler: 'fastest'
}]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment