Permalink
Browse files

Dont treat imported files that have `.css.` inside of the filename as…

… literal CSS
  • Loading branch information...
1 parent b2944cc commit db92a94294366cc42a4b71fb3b2d55805be49294 @kizu committed Nov 17, 2012
View
@@ -649,7 +649,7 @@ Evaluator.prototype.visitImport = function(imported){
var name = path = path.string;
// Literal
- if (~path.indexOf('.css')) {
+ if (~path.indexOf('.css') && !~path.indexOf('.css.')) {
literal = true;
if (!includeCSS) return imported;
}
@@ -1,2 +1,5 @@
@import "foo/bar.css";
-@import 'bar/baz.css';
+@import 'bar/baz.css';
+foo {
+ bar: baz;
+}
@@ -1,3 +1,4 @@
@import "foo/bar.css"
-@import 'bar/baz.css'
+@import 'bar/baz.css'
+@import 'import.literal/import.literal.css.styl'
@@ -0,0 +1,2 @@
+foo
+ bar baz

0 comments on commit db92a94

Please sign in to comment.