-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (26 loc) · 721 Bytes
/
index.js
File metadata and controls
34 lines (26 loc) · 721 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
'use strict';
const Preprocessor = require('./lib/preprocessor');
module.exports = {
_defaultOptions() {
return {};
},
_overrideOptions({ options = {} }) {
return {
...options.emberCliStylesOptions,
};
},
_options(app) {
return {
...this._defaultOptions(),
...this._overrideOptions(app),
};
},
setupPreprocessorRegistry(type, registry) {
const app = registry.app || this._findHost();
if (type !== 'parent' || !app) return;
const options = this._options(app);
const preprocessors = Object.assign({}, options.preprocessors);
registry.add('css', new Preprocessor(preprocessors, options.outputPaths));
},
name: require('./package').name,
};