MCPcopy Index your code
hub / github.com/webpack/css-loader / shouldHandleURL

Function shouldHandleURL

src/plugins/postcss-url-parser.js:50–60  ·  view source on GitHub ↗
(url, declaration, result, options)

Source from the content-addressed store, hash-verified

48}
49
50function shouldHandleURL(url, declaration, result, options) {
51 if (url.length === 0) {
52 result.warn(`Unable to find uri in '${declaration.toString()}'`, {
53 node: declaration,
54 });
55
56 return { requestable: false, needResolve: false };
57 }
58
59 return isURLRequestable(url, options);
60}
61
62function parseDeclaration(declaration, key, result, options) {
63 if (!needParseDeclaration.test(declaration[key])) {

Callers 1

parseDeclarationFunction · 0.85

Calls 1

isURLRequestableFunction · 0.90

Tested by

no test coverage detected