forked from fossasia/open-event-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
41 lines (37 loc) · 1.28 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
/* eslint-env node */
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const MergeTrees = require('broccoli-merge-trees');
const Funnel = require('broccoli-funnel');
module.exports = function(defaults) {
const app = new EmberApp(defaults, {
'ember-cli-babel': {
includePolyfill: true
},
storeConfigInMeta : false,
flexibility : {
enabled: true
},
autoprefixer: {
browsers : ['Firefox >= 20', 'Chrome >=20', 'Explorer >= 10', 'Android >= 4.0', 'Safari >= 7', 'iOS >= 5'],
cascade : false
},
minifyHTML: {
enabled : true,
htmlFiles : ['index.html', '404.html']
}
});
app.import('bower_components/semantic-ui-calendar/dist/calendar.min.css');
app.import('bower_components/semantic-ui-calendar/dist/calendar.min.js');
app.import('bower_components/wysihtml/dist/wysihtml-toolbar.min.js');
app.import('bower_components/Croppie/croppie.css');
app.import('bower_components/Croppie/croppie.min.js');
app.import('bower_components/tinyColorPicker/jqColorPicker.min.js');
app.import('bower_components/js-polyfills/xhr.js');
const appTree = app.toTree([]);
return new MergeTrees([appTree, new Funnel(appTree, {
files: ['index.html'],
getDestinationPath() {
return '404.html';
}
})]);
};