Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

gulp-strip-css-comments

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-strip-css-comments - npm Package Compare versions

Comparing version
1.0.0
to
1.1.0
+2
-2
index.js

@@ -6,3 +6,3 @@ 'use strict';

module.exports = function () {
module.exports = function (opts) {
return through.obj(function (file, enc, cb) {

@@ -19,3 +19,3 @@ if (file.isNull()) {

try {
file.contents = new Buffer(stripCssComments(file.contents.toString()));
file.contents = new Buffer(stripCssComments(file.contents.toString(), opts));
this.push(file);

@@ -22,0 +22,0 @@ } catch (err) {

{
"name": "gulp-strip-css-comments",
"version": "1.0.0",
"version": "1.1.0",
"description": "Strip comments from CSS",

@@ -10,3 +10,3 @@ "license": "MIT",

"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},

@@ -38,3 +38,3 @@ "engines": {

"gulp-util": "^3.0.0",
"strip-css-comments": "^1.0.0",
"strip-css-comments": "^2.0.0",
"through2": "^0.6.1"

@@ -41,0 +41,0 @@ },

@@ -8,3 +8,3 @@ # gulp-strip-css-comments [![Build Status](https://travis-ci.org/sindresorhus/gulp-strip-css-comments.svg?branch=master)](https://travis-ci.org/sindresorhus/gulp-strip-css-comments)

```sh
```
$ npm install --save-dev gulp-strip-css-comments

@@ -28,4 +28,11 @@ ```

## stripCssComments([options])
### options
See the `strip-css-comments` [options](https://github.com/sindresorhus/strip-css-comments#options).
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)