Skip to content

Commit 403156a

Browse files
committed
fix: postcss-plugin returns now a consistent void return value
1 parent b59d851 commit 403156a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/postcss-plugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,13 @@ module.exports = postcss.plugin('iconfont-webpack', config => function (root, re
189189
// Prefix the fontname with a letter as fonts with a leading number are not allowed
190190
fontName = config.fontNamePrefix + String.fromCharCode(fontName.charCodeAt(0) + 20) + fontName.substr(1);
191191
// Update the css
192-
return Promise.all([
192+
const processCssPromise = Promise.all([
193193
// add the font faces
194194
addFontDeclaration(fontName, root, config.enforcedSvgHeight, svgPaths),
195195
// replace the `font-icon` occurences
196196
replaceIconFontDeclarations(fontName, root, svgPaths)
197197
]);
198+
// Return an empty promise
199+
return processCssPromise.then(function () { });
198200
});
199201
});

0 commit comments

Comments
 (0)