Skip to content

Commit fd629bd

Browse files
committed
fix(plugin): don't hide sprite by default
ISSUES CLOSED: #232
1 parent 61af1a5 commit fd629bd

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ It is also possible to generate sprite for each chunk by using `[chunkname]` pat
208208
<a id="plain-sprite"></a>
209209
### Plain sprite
210210

211-
You can render plain sprite in extract mode without styles, usages and hidden by default (`syle="position: absolute; width: 0; height: 0"`).
212-
Pass `plainSprite: true` option to plugin constructor:
211+
You can render plain sprite in extract mode without styles and usages. Pass `plainSprite: true` option to plugin constructor:
213212

214213
```js
215214
{

lib/plugin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class SVGSpritePlugin {
3232
if (config.plainSprite) {
3333
spriteFactoryOptions.styles = false;
3434
spriteFactoryOptions.usages = false;
35-
spriteFactoryOptions.attrs.style = ['position: absolute', 'width: 0', 'height: 0'].join('; ');
3635
}
3736

3837
this.factory = ({ symbols }) => {

0 commit comments

Comments
 (0)