1.1.0 • Published 3 years ago

@central-design-system/svg-builder v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Central Design System - Svg Builder

Optimizing and compiling svg to vue.js component

Installation

Install with npm:

npm install @central-design-system/svg-builder --save-dev

Install with yarn:

yarn add @central-design-system/svg-builder --dev

Configuration

import SvgBuilder from '@central-design-system/svg-builder';

const svgBuilder = new SvgBuilder(entryDir, outputDir, options);

svgBuilder.build();

entryDir

Type: String Required: true

Path for your source svg files

outputDir

Type: String Required: true

Path to output optimized and compiled vue files

options

Type: Object Required: false Default: {}

Options

NameDescriptionTypeDefault
entityNameName entity for optimizationStringsvg
classNameMain css class for svg tagStringundefined
templateVue-component templateStringdefaultTemplate
createIndexFileCreate index file with install function for Vue.use()Booleanfalse
widthDefault svg widthnumbernull
heightDefault svg heightnumbernull
svgoSvgo OptionsSvgoOptions{}
svgoPluginsSvgo Plugin OptionsPlugin[][]
1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago