-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.js
48 lines (41 loc) · 1.29 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
/* eslint-env node */
'use strict';
const autoprefixer = require('autoprefixer');
const customProperties = require('postcss-custom-properties');
const postcssNested = require('postcss-nested');
module.exports = {
name: 'canvas-editor',
options: {
cssModules: {
plugins: {
before: [
postcssNested,
customProperties({ preserve: true })
],
after: [
autoprefixer('last 2 versions')
]
}
}
},
isDevelopingAddon() {
return process.env.NODE_ENV !== 'production';
},
included(app) {
this._super.included.call(this, app);
app.import(`${app.bowerDirectory}/base62/base62.min.js`);
app.import(`${app.bowerDirectory}/rangy/rangy-core.js`);
app.import(`${app.bowerDirectory}/rangy/rangy-textrange.js`);
app.import(`${app.bowerDirectory}/uuid.js/src/uuid.js`);
app.import(`${app.bowerDirectory}/markdown-it/dist/markdown-it.js`);
app.import('vendor/normalize.css');
app.import('vendor/shims/base62.js');
app.import('vendor/shims/markdown-it.js');
app.import('vendor/shims/rangy.js');
app.import('vendor/shims/uuid.js');
app.import('vendor/runkit.js');
app.import('vendor/shims/runkit.js');
app.import('vendor/shims/highlight.js');
app.import('vendor/highlight.js');
}
};