-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathindex.js
More file actions
31 lines (25 loc) · 860 Bytes
/
index.js
File metadata and controls
31 lines (25 loc) · 860 Bytes
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
'use strict';
const { buildEngine } = require('ember-engines/lib/engine-addon');
const { name } = require('./package');
const Funnel = require('broccoli-funnel');
const MergeTrees = require('broccoli-merge-trees');
const path = require('path');
module.exports = buildEngine({
name,
lazyLoading: {
enabled: true,
},
isDevelopingAddon() {
return true;
},
treeForPublic: function () {
const publicTree = this._super.treeForPublic.apply(this, arguments);
const addonTree = [
new Funnel(path.join(__dirname, 'assets'), {
destDir: '/',
}),
];
// Merge the addon tree with the existing tree
return publicTree ? new MergeTrees([publicTree, ...addonTree], { overwrite: true }) : new MergeTrees([...addonTree], { overwrite: true });
},
});