-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
37 lines (27 loc) · 861 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';
module.exports = {
name: require('./package').name,
options: {
babel: {
plugins: [ require.resolve('ember-auto-import/babel-plugin') ]
}
},
included() {
let app = this._findHost();
this.app = app;
if (app.__emberHandsOnTableIncludedInvoked) {
this._super.included.apply(this, arguments);
return;
}
app.__emberHandsOnTableIncludedInvoked = true;
this._super.included.apply(this, arguments);
// TODO:: Move this to import based styles for scss related imports.
app.import('node_modules/handsontable/dist/handsontable.full.min.css');
},
_hasSassOrLessInstalledInApp() {
let app = this.app;
let hasSass = !!app.registry.availablePlugins['ember-cli-sass'];
let hasLess = !!app.registry.availablePlugins['ember-cli-less'];
return hasSass || hasLess;
}
};