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 ac5ad35 commit a1abd3cCopy full SHA for a1abd3c
src/plugins/postcss-url-parser.js
@@ -304,10 +304,6 @@ const plugin = (options = {}) => {
304
parsedDeclarations.map(async (parsedDeclaration) => {
305
const { url } = parsedDeclaration;
306
307
- if (isDataUrl(url)) {
308
- return parsedDeclaration;
309
- }
310
-
311
if (options.filter) {
312
const needKeep = await options.filter(url);
313
@@ -317,6 +313,11 @@ const plugin = (options = {}) => {
317
}
318
314
319
315
316
+ if (isDataUrl(url)) {
+ // eslint-disable-next-line consistent-return
+ return parsedDeclaration;
+ }
320
+
321
const splittedUrl = url.split(/(\?)?#/);
322
const [pathname, query, hashOrQuery] = splittedUrl;
323
0 commit comments