gulp-postcss
Advanced tools
Comparing version 9.0.1 to 9.1.0
@@ -130,7 +130,7 @@ var Stream = require('stream') | ||
} | ||
// @TODO: The options property is deprecated and should be removed in 10.0.0. | ||
contextOptions.options = Object.assign({}, contextOptions) | ||
contextOptions.file = file | ||
return postcssLoadConfig( | ||
{ | ||
file: file, | ||
options: contextOptions | ||
}, | ||
contextOptions, | ||
configPath | ||
@@ -137,0 +137,0 @@ ) |
@@ -16,7 +16,7 @@ { | ||
}, | ||
"version": "9.0.1", | ||
"version": "9.1.0", | ||
"description": "PostCSS gulp plugin", | ||
"main": "index.js", | ||
"engines": { | ||
"node": "^10 || ^12 || >=14" | ||
"node": ">=18" | ||
}, | ||
@@ -44,5 +44,5 @@ "scripts": { | ||
"dependencies": { | ||
"fancy-log": "^1.3.3", | ||
"plugin-error": "^1.0.1", | ||
"postcss-load-config": "^3.0.0", | ||
"fancy-log": "^2.0.0", | ||
"plugin-error": "^2.0.1", | ||
"postcss-load-config": "^5.0.0", | ||
"vinyl-sourcemaps-apply": "^0.2.1" | ||
@@ -53,4 +53,4 @@ }, | ||
"gulp-sourcemaps": "^2.6.5", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"mocha": "^10.2.0", | ||
"nyc": "^15.1.0", | ||
"postcss": "^8.0.0", | ||
@@ -57,0 +57,0 @@ "proxyquire": "^2.1.0", |
@@ -95,2 +95,17 @@ # gulp-postcss | ||
If you are using a `postcss.config.js` file, you can pass PostCSS options as the first argument to gulp-postcss. | ||
This, for instance, will let PostCSS know what the final file destination path is, since it will be unaware of the path given to `gulp.dest()`: | ||
```js | ||
var gulp = require('gulp'); | ||
var postcss = require('gulp-postcss'); | ||
gulp.task('default', function () { | ||
return gulp.src('in.scss') | ||
.pipe(postcss({ to: 'out/in.css' })) | ||
.pipe(gulp.dest('out')); | ||
}); | ||
``` | ||
## Using a custom processor | ||
@@ -182,5 +197,6 @@ | ||
```js | ||
// postcss.config.js or .postcssrc.js | ||
module.exports = function (ctx) { | ||
var file = ctx.file; | ||
var options = ctx.options; | ||
var options = ctx; | ||
return { | ||
@@ -193,3 +209,3 @@ parser: file.extname === '.sss' ? : 'sugarss' : false, | ||
} | ||
}) | ||
}; | ||
``` | ||
@@ -199,2 +215,9 @@ | ||
* 9.1.0 | ||
* Bump postcss-load-config to ^5.0.0 | ||
* Ensure options are passed to plugins when using postcss.config.js #170 | ||
* Update deps | ||
* Drop support for node <18 | ||
* Add flake.nix for local dev with `nix develop` | ||
* 9.0.1 | ||
@@ -201,0 +224,0 @@ * Bump postcss-load-config to ^3.0.0 |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
15179
334
1
+ Addedfancy-log@2.0.0(transitive)
+ Addedlilconfig@3.1.3(transitive)
+ Addedplugin-error@2.0.1(transitive)
+ Addedpostcss-load-config@5.1.0(transitive)
+ Addedyaml@2.7.0(transitive)
- Removedansi-gray@0.1.1(transitive)
- Removedarr-diff@4.0.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedextend-shallow@3.0.2(transitive)
- Removedfancy-log@1.3.3(transitive)
- Removedis-extendable@1.0.1(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedisobject@3.0.1(transitive)
- Removedlilconfig@2.1.0(transitive)
- Removedparse-node-version@1.0.1(transitive)
- Removedplugin-error@1.0.1(transitive)
- Removedpostcss-load-config@3.1.4(transitive)
- Removedtime-stamp@1.1.0(transitive)
- Removedyaml@1.10.2(transitive)
Updatedfancy-log@^2.0.0
Updatedplugin-error@^2.0.1
Updatedpostcss-load-config@^5.0.0