We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50c7a7 commit a65c551Copy full SHA for a65c551
packages/icons/gulpfile.js
@@ -2,6 +2,7 @@ import * as cheerio from 'cheerio';
2
import { dest, src, task } from 'gulp';
3
import concat from 'gulp-concat';
4
import { gulpPlugin } from 'gulp-plugin-extras';
5
+import { normalize } from 'path';
6
7
function createCopyright() {
8
return `/**
@@ -13,7 +14,7 @@ function createCopyright() {
13
14
15
function transformIcon() {
16
return gulpPlugin('gulp-transform-icon', (file) => {
- const id = file.path.replace(/.*\/(.*).svg/u, '$1');
17
+ const id = normalize(file.path).replace(/.*\/(.*).svg/u, '$1');
18
const svg = cheerio.load(file.contents, { xmlMode: true })('svg');
19
// Remove fill attributes.
20
svg.children('[fill]').removeAttr('fill');
0 commit comments