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 bf33103 commit c83823fCopy full SHA for c83823f
lib/load.js
@@ -241,9 +241,8 @@ var Loader = function (data) {
241
var cssLocalDirname = cssLocalPath ? path.dirname(cssLocalPath) : options.path,
242
commentRegexp = /\/\*([\s\S]*?)\*\//g,
243
sourcesRegexps = [
244
- /(url[\s]*\([\s'"]*)(.+?)([\s'"]*\))/gi,
245
/(@import[\s]*['"]?[\s]*)(.+?)([\s]*['"]?;)/gi,
246
- /(@import[\s]*url[\s]*\([\s'"]*)(.+?)([\s'"]*\))/gi
+ /((?:@import[\s]*)?url[\s]*\([\s'"]*)(.+?)([\s'"]*\))/gi
247
],
248
urlPromises = [];
249
0 commit comments