You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+68Lines changed: 68 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,73 @@
1
1
# Changelog
2
2
3
+
## 4.5.1
4
+
5
+
- Adds PostCSS support
6
+
- Autoprefixer replaces gulp-autoprefixer
7
+
- cssnano replaces gulp-cssnano
8
+
9
+
Users can configure `plugins` and `options` in `task-config.js`'s `stylesheets.postcss`. See [gulp-postcss](https://github.com/postcss/gulp-postcss) for more info.
10
+
11
+
Basic usage is unchanged. Source stylesheets will be preprocessed with Sass unless `stylesheets.sass` is `false`. You can still call out Sass explicitly if you like:
12
+
13
+
```javascript
14
+
// in task-config.js
15
+
stylesheets:true
16
+
```
17
+
18
+
A `task-config` with custom PostCSS will look like this
19
+
20
+
```javascript
21
+
// task-config.js
22
+
// must also add the dependencies (`(npm i|yarn add) some-plugin some-option`)
23
+
24
+
var somePlugin =require('some-plugin')
25
+
var someOption =require('some-option')
26
+
27
+
var postCssPlugins = [somePlugin()]
28
+
var postCssOptions = {someOption}
29
+
30
+
module.exports= {
31
+
// ...
32
+
stylesheets: {
33
+
// sass: true is implied
34
+
postcss: {
35
+
plugins: postCssPlugins,
36
+
options: postCssOptions
37
+
}
38
+
}
39
+
// ...
40
+
}
41
+
```
42
+
43
+
Autoprefixer and cssnano are injected into the PostCSS plugins list, and do not need to be specified. However custom Autoprefixer and/or cssnano configs are respected if provided. That looks like this:
44
+
45
+
```javascript
46
+
// task-config.js
47
+
// must also add the autoprefixer dependency (`(npm i|yarn add) autoprefixer`)
48
+
49
+
var autoprefixer =require('autoprefixer')
50
+
51
+
var postCssPlugins = [
52
+
autoprefixer({
53
+
grid:"autoplace"
54
+
})
55
+
]
56
+
57
+
module.exports= {
58
+
// ...
59
+
stylesheets: {
60
+
// sass: true is implied
61
+
postcss: {
62
+
plugins: postCssPlugins
63
+
}
64
+
}
65
+
// ...
66
+
}
67
+
```
68
+
69
+
70
+
3
71
## 4.5.0
4
72
Recommended security-focused upgrade:
5
73
- Dependency updates to **resolve security warnings** and resolve deprecation warnings.
0 commit comments