Socket
Socket
Sign inDemoInstall

gulp-svg-mixer

Package Overview
Dependencies
266
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-svg-mixer

Gulp plugin for creating SVG sprites


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Install size
11.1 MB
Created
Weekly downloads
 

Readme

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

Last updated on 27 Apr 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc