forked from cerebris/peeps-ember-orbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathember-cli-build.js
44 lines (38 loc) · 905 Bytes
/
ember-cli-build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const SW_VERSION = '2';
module.exports = function(defaults) {
const app = new EmberApp(defaults, {
'ember-service-worker': {
registrationStrategy: 'inline'
},
'asset-cache': {
include: ['assets/**/*'],
version: SW_VERSION
},
'esw-cache-fallback': {
patterns: ['/'],
version: SW_VERSION
},
vendorFiles: {
'jquery.js': null
},
// Orbit-specific options
orbit: {
packages: [
'@orbit/jsonapi',
'@orbit/indexeddb',
'@orbit/local-storage',
'@orbit/indexeddb-bucket',
'@orbit/local-storage-bucket'
]
},
'ember-bootstrap': {
'bootstrapVersion': 4,
'importBootstrapFont': false,
'importBootstrapCSS': false
}
});
app.import('vendor/md5.js');
return app.toTree();
};