generated from mirego/ember-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathember-cli-build.js
63 lines (49 loc) · 1.34 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
/* eslint-env node */
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const targets = require('./config/targets');
const IS_TEST_ENVIRONMENT = EmberApp.env() === 'test';
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
hinting: false,
storeConfigInMeta: false,
tests: IS_TEST_ENVIRONMENT,
'ember-cli-uglify': {
enabled: false,
},
vendorFiles: {
'jquery.js': null,
},
autoprefixer: {
browsers: targets.browsers,
sourcemap: false,
},
cssModules: {
intermediateOutputPath: 'app/styles/_pods.scss',
extension: 'module.scss',
postcssOptions: {
syntax: require('postcss-scss'),
},
},
babel: {
plugins: [require('ember-auto-import/babel-plugin'), 'transform-object-rest-spread'],
sourceMaps: 'inline',
},
'ember-cli-babel': {
includePolyfill: true,
},
// Chromium forbids the use of eval in browser extensions as of Manifest v3.
// This setting causes ember-auto-import to avoid webpack source map settings
// which would implicitly use eval in built versions of the app.
autoImport: {
forbidEval: true,
},
sourcemaps: {
enabled: !IS_TEST_ENVIRONMENT,
},
fingerprint: {
enabled: false,
},
});
return app.toTree();
};