-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpostcss.js
executable file
·54 lines (45 loc) · 970 Bytes
/
postcss.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
54
'use strict';
var autoprefixer = require('autoprefixer'),
cssnano = require('cssnano'),
calc = require('postcss-calc'),
postcssImport = require('postcss-import'),
precss = require('precss');
var config = require('./config');
var postcss = {
build: {
options: {
map: true,
processors: [
postcssImport({
path: config.cssPath
}),
precss(),
calc(),
autoprefixer({'browsers': 'last 3 versions'})
]
},
cwd: config.src + '/htdocs',
dest: config.build + '/' + config.src + '/htdocs',
expand: true,
ext: '.css',
extDot: 'last',
src: [
'**/*.scss',
'!**/_*.scss'
]
},
dist: {
options: {
processors: [
cssnano({zindex: false})
]
},
cwd: config.build + '/' + config.src + '/htdocs',
dest: config.dist + '/htdocs',
expand: true,
src: [
'**/*.css'
]
}
};
module.exports = postcss;