-
Notifications
You must be signed in to change notification settings - Fork 62
/
css.js
26 lines (22 loc) · 757 Bytes
/
css.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
import Loader from 'jspm-loader-css/src/loader.js';
import inlineComments from 'postcss-inline-comment';
import mixins from 'postcss-mixins';
import nestedcss from 'postcss-nested';
import cssvariables from 'postcss-css-variables';
import autoprefixer from 'autoprefixer';
import cursorHandMixin from './custom-postcss-mixins/cursor-hand.js';
import toggleCheckboxEnclosedMixin from './custom-postcss-mixins/toggle-checkbox-enclosed.js';
const plugins = [
inlineComments(),
mixins({
mixins: {
'cursor-hand': cursorHandMixin,
'toggle-checkbox-enclosed': toggleCheckboxEnclosedMixin
}
}),
nestedcss,
cssvariables(),
autoprefixer({browsers: ['last 10 versions']})
];
const { fetch, bundle } = new Loader(plugins);
export { fetch, bundle };