New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-postcss

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-postcss - npm Package Compare versions

Comparing version 9.0.1 to 9.1.0

8

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc