3.0.0 • Published 2 years ago

tde-webpack-svg-plugin v3.0.0

Weekly downloads
27
License
MIT
Repository
github
Last release
2 years ago

TDE Webpack SVG Plugin

Webpack plugin for converting SVG files to HTML

Install

npm install --save-dev tde-webpack-svg-plugin

Usage

In your webpack.config.js

var SvgPlugin = require('tde-webpack-svg-plugin');

module.exports = {
    // ...
    plugins: [
        new SvgPlugin(paths.SVG, {
            mode: {
                symbol: {
                    inline: true,
                },
            },
            dest: paths.DIST_PRIVATE + '/svg'
        }),
    ]
};

API:

// webpack.config.js

module.exports = {
    plugins: [
        new SvgPlugin(inputPath, options)
    ]
}

inputPath

Type: String

The path where SVG files are located

options

Type: Object

See https://github.com/jkphl/svg-sprite/blob/master/docs/configuration.md

License

MIT © TDE

3.0.0

2 years ago

2.0.0

3 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago