forked from smallrobotco/smallrobot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ember-cli-build.js
71 lines (69 loc) · 1.75 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* eslint-env node */
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const crawl = require('prember-crawler');
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
'sassOptions': {
// This tells ember-cli-sass to avoid generating the sourcemap file (like vendor.css.map)
sourceMap: false
},
'ember-cli-image-transformer': {
images: [
{
inputFilename: 'public/img/icon.png',
outputFileName: 'appicon-',
convertTo: 'png',
destination: 'assets/icons/',
sizes: [32, 192, 280, 512]
},
{
inputFilename: 'public/img/splash.png',
outputFileName: 'appsplash-',
convertTo: 'png',
destination: 'assets/splashes/',
sizes: [512]
}
]
},
'ember-service-worker': {
enabled: true,
versionStrategy: 'every-build'
},
'asset-cache': {
include: [
'assets/**/*',
'favicons/**/*',
'fonts/**/*',
'img/**/*',
'https://api.smallrobot.co/api/(.+)',
'https://api.smallrobot.co/sites/default/files/*.(?:jpg|gif|png)'
],
requestMode: 'cors',
lenientErrors: true,
version: '47'
},
'esw-cache-fallback': {
patterns: [
'https://api.smallrobot.co/api/(.+)',
'https://api.smallrobot.co/sites/default/files/*.(?:jpg|gif|png)'
],
// changing this version number will bust the cache
version: '47'
},
'esw-prember': {
version: '47'
},
'prember': {
baseRoot: 'https://smallrobot.co',
urls: crawl
},
fingerprint: {
enabled: false
},
SRI: {
enabled: false
}
});
return app.toTree();
};