The plugin runs all imported SVG files through svgo. For index.html, you can use the following syntax: ```html <use svg="file.svg" size="24" /> ``` For scripts, use the `?svg` import query ```javascript import SVG_FILE from './file.svg?svg&size=24 ``` Note: size is shorthand for specifying both width and height individually. You can also set any property of the base SVG element. You can also use the `?svg&icon` query to return a function that allows dynamically resizing the SVG string.
13 lines
No EOL
307 B
XML
13 lines
No EOL
307 B
XML
<svg
|
|
class="app-logo"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
width="200"
|
|
height="200"
|
|
viewBox="14.75 14.75 70.5 70.5"
|
|
>
|
|
<g fill="currentColor">
|
|
<path
|
|
d="M38.25 14.75H85.25V61.75H61.75V38.25H38.25ZM14.75 38.25H38.25V61.75H61.75V85.25H14.75Z"
|
|
/>
|
|
</g>
|
|
</svg> |