tde-webpack-svg-plugin

3.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tde-webpack-svg-plugin

Weekly Downloads

93

Version

3.0.0

License

MIT

Unpacked Size

5.21 kB

Total Files

4

Last publish

Collaborators

  • jordikroon
  • johnvanhulsen