-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathember-cli-build.js
More file actions
42 lines (35 loc) · 1.16 KB
/
Copy pathember-cli-build.js
File metadata and controls
42 lines (35 loc) · 1.16 KB
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
/* eslint-env node */
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const environment = EmberApp.env();
const IS_PROD = environment === 'production';
const IS_TEST = environment === 'test';
const IS_CORDOVA = environment === 'cordova';
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
// Add options here
hinting: IS_TEST,
tests: IS_TEST,
// 'ember-cli-babel': {
// includePolyfill: false,
// },
sourcemaps: {
enabled: !IS_PROD && !IS_CORDOVA,
},
'ember-cli-uglify': {
enabled: IS_PROD || IS_CORDOVA,
exclude: ["**/vendor.js"], // tenser is shit
},
minifyCSS: {
enabled: IS_PROD || IS_CORDOVA,
},
fingerprint: {
extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'json'],
}
});
app.import('node_modules/normalize.css/normalize.css');
app.import('node_modules/feather-icons/dist/feather-sprite.svg');
app.import('node_modules/particles.js/particles.js');
app.import('vendor/shims/particles.js');
return app.toTree();
};