-
Notifications
You must be signed in to change notification settings - Fork 1
/
ember-cli-build.js
53 lines (48 loc) · 1.81 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
49
50
51
52
53
'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function (defaults) {
let app = new EmberAddon(defaults, {
sassOptions: {
includePaths: [
'node_modules/bootstrap-sass/assets/stylesheets',
'node_modules/bootswatch/spacelab',
'node_modules/font-awesome/scss',
],
},
});
// bootstrap & bootstrap-sass from node_modules
app.import('node_modules/bootstrap/dist/js/bootstrap.js');
app.import('node_modules/bootstrap/fonts/glyphicons-halflings-regular.eot', {
destDir: 'fonts/bootstrap',
});
app.import('node_modules/bootstrap/fonts/glyphicons-halflings-regular.svg', {
destDir: 'fonts/bootstrap',
});
app.import('node_modules/bootstrap/fonts/glyphicons-halflings-regular.ttf', {
destDir: 'fonts/bootstrap',
});
app.import('node_modules/bootstrap/fonts/glyphicons-halflings-regular.woff', {
destDir: 'fonts/bootstrap',
});
app.import('node_modules/bootstrap/fonts/glyphicons-halflings-regular.woff2', { destDir: 'fonts/bootstrap' });
// font-awesome from node_modules
app.import('node_modules/font-awesome/fonts/FontAwesome.otf', {
destDir: 'assets/font-awesome/fonts',
});
app.import('node_modules/font-awesome/fonts/fontawesome-webfont.eot', {
destDir: 'assets/font-awesome/fonts',
});
app.import('node_modules/font-awesome/fonts/fontawesome-webfont.svg', {
destDir: 'assets/font-awesome/fonts',
});
app.import('node_modules/font-awesome/fonts/fontawesome-webfont.ttf', {
destDir: 'assets/font-awesome/fonts',
});
app.import('node_modules/font-awesome/fonts/fontawesome-webfont.woff', {
destDir: 'assets/font-awesome/fonts',
});
app.import('node_modules/font-awesome/fonts/fontawesome-webfont.woff2', {
destDir: 'assets/font-awesome/fonts',
});
return app.toTree();
};