-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathember-cli-build.js
More file actions
29 lines (23 loc) · 804 Bytes
/
ember-cli-build.js
File metadata and controls
29 lines (23 loc) · 804 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
'use strict';
// eslint-ignore-newt-line @typescript-eslint/no-var-requires
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { Funnel } = require('broccoli-funnel');
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
inlineContent: {
loader: 'app/loader.html',
},
autoImport: {
exclude: ['jsdom-global'],
},
});
// Import the calcite CSS into the app CSS
app.import('node_modules/@esri/calcite-components/dist/calcite/calcite.css');
// Funnel the calcite static assets into the build assets directory
let calciteAssetsTree = new Funnel('./node_modules/@esri/calcite-components/dist', {
srcDir: '/',
include: ['calcite/assets/**'],
destDir: '/assets',
});
return app.toTree([calciteAssetsTree]);
};