Skip to content

Commit d3e1673

Browse files
committed
try to skip the query part of an import URL without full URL parsing to detect if it should be a CSS import. see #65
1 parent 0add496 commit d3e1673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/inet/lib/less/LessParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ private void importFile( FormattableContainer currentRule, final String name ) {
561561
lazyImports.add( lazy );
562562
return;
563563
}
564-
if( !isLess && !isInline && (isCss || filename.endsWith( "css" )) ) {
564+
if( !isLess && !isInline && (isCss || filename.endsWith( "css" ) || filename.contains( "css?" ) ) ) {
565565
// filenames ends with "css" will not be inline else a CSS @import directive is written
566566
currentRule.add( new CssAtRule( reader, "@import " + origFilename + ';', true ) );
567567
return;

0 commit comments

Comments
 (0)