gulp-strip-css-comments
Advanced tools
+2
-2
@@ -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) { |
+3
-3
| { | ||
| "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
-1
@@ -8,3 +8,3 @@ # gulp-strip-css-comments [](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) |
2228
7.12%37
23.33%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated