1.1.4 • Published 6 years ago

webpack-inline-svg-plugin v1.1.4

Weekly downloads
23
License
ISC
Repository
github
Last release
6 years ago

webpack-inline-svg-plugin

Inline Svgs from an image tag to full svg markup

Usage

Install

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

Example

Add the following to your webpack.js

module.exports = function (options) {
  plugins: [
	new WebpackInlineSvgPlugin({
	  basePath: "my-app/asset/location",
	  patterns: [
		".html"
	  ]
	}),
  ]
}

In your markup add the inline-svg attribute

<img inline-svg class="logo" title="Logo" src="assets/icons/logo.svg">

The result will be the full svg file content will replace this image tag.

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago