Skip to content

Commit

Permalink
Offline first support
Browse files Browse the repository at this point in the history
Closes #381.
  • Loading branch information
jlblcc committed Mar 18, 2020
1 parent 77c8415 commit 3f630ca
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 111 deletions.
17 changes: 17 additions & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ module.exports = function (defaults) {
//https: true
}
}
},
'asset-cache': {
// which asset files to include, glob paths are allowed!
// defaults to `['assets/**/*']`
include: [
'assets/**/*',
'fonts/*',
'favicon*',
'apple-*',
'mstile-*'
]
},
'esw-cache-fallback': {
patterns: [
'/fonts/fontawesome-webfont(.+)',
'/fonts/mdeditor(.+)'
],
}
});

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@
"ember-resolver": "^5.0.1",
"ember-route-action-helper": "^2.0.6",
"ember-simplemde": "^1.2.0",
"ember-service-worker": "^0.8.4",
"ember-service-worker-asset-cache": "^0.6.4",
"ember-service-worker-cache-fallback": "^0.6.2",
"ember-service-worker-index": "^0.7.0",
"ember-source": "~3.12.0",
"ember-source-channel-url": "^2.0.1",
"ember-tether": "^1.0.0",
Expand Down
Loading

0 comments on commit 3f630ca

Please sign in to comment.