Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 26, 2024 via pnpm
Package summary
Share
0
issues
3
licenses
17
MIT
2
ISC
2
BSD-3-Clause
Package created
29 Apr 2014
Version published
15 Mar 2020
Maintainers
1
Total deps
21
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
17 Packages, Including:
ansi-colors@1.1.0
ansi-wrap@0.1.0
arr-diff@4.0.0
arr-union@3.1.0
assign-symbols@1.0.0
clean-css@4.2.3
extend-shallow@3.0.2
gulp-clean-css@4.3.0
is-extendable@1.0.1
is-plain-object@2.0.4
isobject@3.0.1
plugin-error@1.0.1
readable-stream@3.6.2
safe-buffer@5.2.1
string_decoder@1.3.0
through2@3.0.1
util-deprecate@1.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
inherits@2.0.4
vinyl-sourcemaps-apply@0.2.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
source-map@0.5.7
source-map@0.6.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of gulp-clean-css 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
clean-css4.2.388.14 kBMIT
prod
plugin-error1.0.14.3 kBMIT
prod
through23.0.15.37 kBMIT
prod
vinyl-sourcemaps-apply0.2.11.33 kBISC
prod

Visualizations

Frequently Asked Questions

What does gulp-clean-css do?

Gulp-clean-css is a useful gulp plugin used for CSS minification. It harnesses the power of clean-css to accomplish this task. By minimizing your CSS files, gulp-clean-css assists in improving your website's load speed, thus enhancing user experience and promoting SEO optimization.

How do you use gulp-clean-css?

To utilize gulp-clean-css, begin by installing the package with the command npm install gulp-clean-css --save-dev. You can afterward integrate it into your Gulp tasks. Here are a few code examples indicating how gulp-clean-css can be used:

Basic usage for minifying CSS, storing the result in a different directory:

const gulp = require('gulp');
const cleanCSS = require('gulp-clean-css');

gulp.task('minify-css', () => {
  return gulp.src('styles/*.css')
    .pipe(cleanCSS({compatibility: 'ie8'}))
    .pipe(gulp.dest('dist'));
});

Using the plugin with a callback to log the details of the minification process:

const gulp = require('gulp');
const cleanCSS = require('gulp-clean-css');

gulp.task('minify-css', () => {
  return gulp.src('styles/*.css')
    .pipe(cleanCSS({debug: true}, (details) => {
      console.log(`${details.name}: ${details.stats.originalSize}`);
      console.log(`${details.name}: ${details.stats.minifiedSize}`);
    }))
  .pipe(gulp.dest('dist'));
});

Using gulp-clean-css along with gulp-sourcemaps to generate source maps:

const gulp = require('gulp');
const cleanCSS = require('gulp-clean-css');
const sourcemaps = require('gulp-sourcemaps');

gulp.task('minify-css',() => {
  return gulp.src('./src/*.css')
    .pipe(sourcemaps.init())
    .pipe(cleanCSS())
    .pipe(sourcemaps.write())
    .pipe(gulp.dest('dist'));
});

Where are the gulp-clean-css docs?

The documentation for gulp-clean-css can be found in the plugin's README on the GitHub repository. A more comprehensive overview of the type of options available for use in the plugin can be acquired from CleanCSS options. While using this plugin, keep in mind that most of the complicated issues are generally linked to clean-css, the underlying engine. When faced with CSS-related issues, it's suggested to seek assistance from the clean-css repository.