-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathindex.js
More file actions
36 lines (31 loc) · 800 Bytes
/
index.js
File metadata and controls
36 lines (31 loc) · 800 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
32
33
34
35
36
/* eslint-env node */
'use strict';
const funnel = require('broccoli-funnel');
const findHost = require('./lib/utils/find-host');
module.exports = {
name: 'ember-asset-loader',
/**
* If the app has specified `noManifest` to be generated, then we don't
* include the shim for the manifest and the service initializer.
*
* @override
*/
treeForApp: function () {
let tree = this._super.treeForApp.apply(this, arguments);
const app = findHost(this);
if (
app &&
app.options &&
app.options.assetLoader &&
app.options.assetLoader.noManifest
) {
tree = funnel(tree, {
exclude: [
'config/asset-manifest.js',
'instance-initializers/load-asset-manifest.js',
],
});
}
return tree;
},
};