This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| icon: function (name) { | |
| return `<svg class="icon icon--${name}" role="img" aria-hidden="true"> | |
| <use xlink:href="#icon-${name}"></use> | |
| </svg>` | |
| }, | |
| logo: function (name, width, height) { | |
| return `<svg class="logo-default-${name}" role="img" aria-hidden="true" width="${width}", height="${height}"> | |
| <use xlink:href="#icon-${name}"></use> | |
| </svg>` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs') | |
| const path = require('path') | |
| const util = require('util') | |
| const glob = require('glob') | |
| const File = require('vinyl') | |
| const SVGSpriter = require('svg-sprite') | |
| const cwd = path.resolve('src/assets/icons') | |
| const spriteConfig = { | |
| mode: { |