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

gulp-svg-mixer

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-svg-mixer

Gulp plugin for creating SVG sprites

  • 0.2.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-svg-mixer

Gulp plugin for creating SVG sprites.

Installation

npm install gulp-svg-mixer

Usage

const gulp = require('gulp');
const mixer = require('gulp-svg-mixer');

gulp.src('img/*.svg')
  .pipe(mixer())
  .pipe(gulp.dest('build'));

Configuration

sprite.type

Type: string
Default: classic

See svg-mixer.spriteType for details.

sprite.filename

Type: string
Default: 'sprite.svg'

Name of generated sprite file.

css.filename

Type: string
Default: 'sprite-styles.css'

Name of generated CSS file.

css.selector

Type: string
Default: '.[symbol-id]'

CSS selector for generate symbol styles. [symbol-id] will be replaced by actual symbol id.

css.aspectRatio

Type: boolean
Default: true

Generate aspect ratio CSS styles.

prettify

Type: boolean
Default: true

Prettify SVG and CSS output.

Examples

const gulp = require('gulp');
const mixer = require('gulp-svg-mixer');

gulp.src('img/*.svg')
  .pipe(mixer({
    sprite: { type: 'stack', filename: 'stack-sprite.svg' },
    css: { selector: '#[symbol-id]' }
  }))
  .pipe(gulp.dest('build'));

LICENSE

MIT

Keywords

FAQs

Package last updated on 27 Apr 2020

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