Skip to content

Instantly share code, notes, and snippets.

@moltar
Last active March 28, 2018 19:11
Show Gist options
  • Save moltar/d63b90f2e8be252dff26f4b99b3c6103 to your computer and use it in GitHub Desktop.
Save moltar/d63b90f2e8be252dff26f4b99b3c6103 to your computer and use it in GitHub Desktop.
demo svg
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8"?>
<svg enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 100 100" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<style type="text/css">
.st0{fill:#DB7C34;}
.st1{fill:#3961A8;}
</style>
<path class="st0" d="M77,42c-0.2,0-0.4,0-0.5-0.1c-0.3-0.2-0.5-0.6-0.5-1l0.8-4.8H76c-2.8,0-5-2.2-5-5V17c0-2.8,2.2-5,5-5h26 c2.8,0,5,2.2,5,5v14c0,2.8-2.2,5-5,5H85.3l-7.7,5.8C77.4,41.9,77.2,42,77,42z M76,14c-1.7,0-3,1.3-3,3v14c0,1.7,1.3,3,3,3h2 c0.3,0,0.6,0.1,0.8,0.4c0.2,0.2,0.3,0.5,0.2,0.8l-0.6,3.5l6-4.5c0.2-0.1,0.4-0.2,0.6-0.2h17c1.7,0,3-1.3,3-3V17c0-1.7-1.3-3-3-3H76z "/>
<path class="st1" d="m90 39c-0.6 0-1 0.4-1 1v34c0 2.2-1.8 4-4 4h-70c-2.2 0-4-1.8-4-4v-42c0-2.2 1.8-4 4-4h14c0.6 0 1-0.4 1-1s-0.4-1-1-1h-14c-3.3 0-6 2.7-6 6v42c0 3.3 2.7 6 6 6h28.3l-2 6h-4.3c-0.6 0-1 0.4-1 1s0.4 1 1 1h26c0.6 0 1-0.4 1-1s-0.4-1-1-1h-4.3l-2-6h28.3c3.3 0 6-2.7 6-6v-34c0-0.6-0.4-1-1-1zm-46.6 47l2-6h9.2l2 6h-13.2z"/>
</svg>
{
test: /\.svg$/,
use: [
'svg-sprite-loader'
// lossless SVG optimization
// 'svg-fill-loader',
// 'svgo-loader'
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment