-
Notifications
You must be signed in to change notification settings - Fork 141
/
ember-cli-build.js
48 lines (41 loc) · 1.01 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
'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function (defaults) {
let app = new EmberAddon(defaults, {
includeHighlightJS: false,
includeHighlightStyle: false,
snippetSearchPaths: ['app', 'tests'],
autoImport: {
exclude: ['highlight.js'],
forbidEval: true,
webpack: {
// Webpack won't auto-detect, because of "maintained node versions" in config/targets.js
target: 'web',
},
},
sourcemaps: {
enabled: true,
},
});
/*
As recommended by ember-cli-snippet this is a customised download from
https://highlightjs.org/download/
with CSS, Javscript, HTML/XML, Handlebars
*/
app.import('vendor/highlight.pack.js', {
using: [
{
transformation: 'amd',
as: 'highlight.js',
},
],
});
const { maybeEmbroider } = require('@embroider/test-setup');
return maybeEmbroider(app, {
skipBabel: [
{
package: 'qunit',
},
],
});
};