Skip to content
This repository was archived by the owner on Sep 15, 2023. It is now read-only.

Commit ebeec7d

Browse files
committed
chore(bump): v4.5.1
1 parent 73158fe commit ebeec7d

File tree

2 files changed

+69
-1
lines changed

2 files changed

+69
-1
lines changed

CHANGELOG.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,73 @@
11
# Changelog
22

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+
371
## 4.5.0
472
Recommended security-focused upgrade:
573
- Dependency updates to **resolve security warnings** and resolve deprecation warnings.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blendid",
3-
"version": "4.5.0",
3+
"version": "4.5.1",
44
"description": "A full featured configurable asset pipeline and static site builder",
55
"license": "MIT",
66
"engines": {

0 commit comments

Comments
 (0)