Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-svgmin

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-svgmin

Minify SVG files with gulp.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
36K
decreased by-16.14%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-svgmin

Minify SVG files with gulp. This plugin is a small wrapper around the excellent SVGO module, which can be found here:

https://github.com/svg/svgo

Installation

Install via npm:

npm install gulp-svgmin --save-dev

Example

var gulp = require('gulp');
var svgmin = require('gulp-svgmin');

gulp.task('default', function() {
    gulp.src('logo.svg')
        .pipe(svgmin())
        .pipe(gulp.dest('./out'));
});

Plugins

Optionally, you can disable any SVGO plugins to customise the output. Simply pass an object to svgmin with the list of plugins that you would like to disable:

gulp.task('default', function() {
    gulp.src('logo.svg')
        .pipe(svgmin({
            removeDoctype: false
        }))
        .pipe(gulp.dest('./out'));
});

Keywords

FAQs

Package last updated on 06 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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