File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
test/moduleTestCases/urls Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ module.exports = function(content, map) {
114
114
if ( ! stuff . urls [ idx ] ) return str ;
115
115
var urlItem = stuff . urls [ idx ] ;
116
116
var url = urlItem . url ;
117
- if ( ! moduleMode && ! loaderUtils . isUrlRequest ( url , root ) )
117
+ if ( ! loaderUtils . isUrlRequest ( url , root ) )
118
118
return toEmbStr ( urlItem . raw ) ;
119
119
idx = url . indexOf ( "?#" ) ;
120
120
if ( idx < 0 ) idx = url . indexOf ( "#" ) ;
Original file line number Diff line number Diff line change 5
5
background: url({./ module}# ?iefix);
6
6
background: url("#hash" );
7
7
background: url("#" );
8
+ background: url(data: image/ png;base64, AAA );
9
+ background: url(http: / / example.com / image.jpg );
10
+ background: url(/ / example.com / image.png );
11
+ background: green url(data: image/ png;base64, AAA ) url(http: / / example.com / image.jpg ) url(/ / example.com / image.png ) url({./ module}) xyz;
8
12
}
Original file line number Diff line number Diff line change 5
5
background : url ("./module#?iefix" );
6
6
background : url ("#hash" );
7
7
background : url ("#" );
8
+ background : url (data:image/png;base64, AAA);
9
+ background : url (http://example.com/image.jpg);
10
+ background : url (//example.com/image.png);
11
+ background : green url (data:image/png;base64, AAA) url (http://example.com/image.jpg) url (//example.com/image.png) url (./ module) xyz;
8
12
}
You can’t perform that action at this time.
0 commit comments