Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Toolchain
inline-svg
Commits
e3a07f6f
Commit
e3a07f6f
authored
Aug 30, 2018
by
Philipp Nowinski
Browse files
[FEATURE] fix export and add more documentation
parent
7604da7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e3a07f6f
...
...
@@ -32,6 +32,18 @@ const fs = require('fs');
```
#### Usage in Sass
Given you have an icon called
```icon-trash.svg```
```
scss
@import
'svg'
;
.a-button--delete
{
@include
inline-svg
(
$icon-trash
);
}
```
### Configuration
#### Use your own template
...
...
index.js
View file @
e3a07f6f
...
...
@@ -6,7 +6,7 @@ const globby = require('globby');
const
_
=
require
(
'
underscore
'
);
const
util
=
require
(
'
util
'
);
class
InlineSvg
{
module
.
exports
=
class
InlineSvg
{
/**
* Kick things off
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment