-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.js
37 lines (30 loc) · 859 Bytes
/
index.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
'use strict';
const { buildEngine } = require('ember-engines/lib/engine-addon');
const { name } = require('./package');
const Funnel = require('broccoli-funnel');
module.exports = buildEngine({
name,
postprocessTree(type, tree) {
if (type === 'css') {
tree = new Funnel(tree, {
exclude: ['**/@fleetbase/ember-ui/**/*.css'],
});
}
return tree;
},
lazyLoading: {
enabled: true,
},
included(app) {
this._super.included.apply(this, arguments);
// Configure ember-prism for the addon
app.options = app.options || {};
app.options['ember-prism'] = {
components: ['json', 'javascript'],
plugins: ['line-highlight', 'line-numbers'],
};
},
isDevelopingAddon() {
return true;
},
});