https://github.com/sindresorhus/gulp-strip-css-comments
Strip comments from CSS
https://github.com/sindresorhus/gulp-strip-css-comments
css gulp-plugin javascript nodejs strip-comments
Last synced: 5 months ago
JSON representation
Strip comments from CSS
- Host: GitHub
- URL: https://github.com/sindresorhus/gulp-strip-css-comments
- Owner: sindresorhus
- License: mit
- Created: 2014-10-22T22:36:12.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2023-11-01T18:57:36.000Z (over 2 years ago)
- Last Synced: 2025-10-17T06:57:27.368Z (5 months ago)
- Topics: css, gulp-plugin, javascript, nodejs, strip-comments
- Language: JavaScript
- Size: 7.81 KB
- Stars: 28
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# gulp-strip-css-comments
> Strip comments from CSS using [`strip-css-comments`](https://github.com/sindresorhus/strip-css-comments)
## Install
```sh
npm install --save-dev gulp-strip-css-comments
```
## Usage
```js
import gulp from 'gulp';
import stripCssComments from 'gulp-strip-css-comments';
export default () => (
gulp.src('src/app.css')
.pipe(stripCssComments())
.pipe(gulp.dest('dist'))
);
```
## stripCssComments(options?)
### options
Type: `object`
See the `strip-css-comments` [options](https://github.com/sindresorhus/strip-css-comments#options).