-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
88 lines (74 loc) · 2.03 KB
/
config.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
exports.stylesheets = {
// Engine is a function which returns a gulp pipe function, eg. sass()
// Intended to be used by plugins, not manually
engine: null,
// Glob list of files, which to ignore, relative to the stylesheet source folder
// see https://gulpjs.com/docs/en/getting-started/explaining-globs/
ignore: [],
// File extensions
extensions: ['css'],
// Auto prefixer options
// see https://github.com/postcss/autoprefixer#options
autoprefixer: {
},
// PostCSS Nested Calc
// see https://www.npmjs.com/package/@csstools/postcss-nested-calc
nestedCalc: {
preserve: false,
},
// PostCSS plugins and options
// see https://github.com/postcss/postcss
postcss: {
plugins: [],
options: {},
},
// Production only settings, overwrites default settings
production: {
// Source maps dsabled in production mode
sourcemaps: false,
// Minify CSS in production mode
// see https://cssnano.co/guides/optimisations
cssnano: {
// Preset
preset: 'default',
// Configuration options
calc: false,
zindex: false,
mergeIdents: false,
reduceIdents: false,
discardUnused: {
fontFace: false
}
},
},
// Development only settings, overwrites default settings
development: {
// Enable source maps in development mode
// See https://www.npmjs.com/package/gulp-sourcemaps
sourcemaps: {
init: {},
write: {}
},
// Minification disabled in development mode
cssnano: false,
},
};
exports.preprocess = {
stylesheets: [
require('./preprocess-config'),
]
};
exports.tasks = {
stylesheets: [
require('./task'),
]
};
/**
* Paths relative to the global src and dest folders
*/
exports.paths = {
stylesheets: {
'src': 'stylesheets',
'dest': 'assets/stylesheets',
}
};