From c970b18170632fcbe1661617d2c0871f33621064 Mon Sep 17 00:00:00 2001 From: dongyuwei Date: Tue, 7 Jan 2014 21:55:57 +0800 Subject: [PATCH 1/2] process .css same as .less(that means @import a .css file is just as @import a .less file. So you can write less syntax in *.css) --- lib/less/tree/import.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/less/tree/import.js b/lib/less/tree/import.js index 11a217084..426f24740 100644 --- a/lib/less/tree/import.js +++ b/lib/less/tree/import.js @@ -26,6 +26,8 @@ tree.Import = function (path, features, options, index, currentFileInfo) { this.css = true; } } + + this.css = false;//process .css same as .less, added by dongyuwei }; // From 43b765cba8823ecc8d05baafa13c850fc5997872 Mon Sep 17 00:00:00 2001 From: dongyuwei Date: Tue, 7 Jan 2014 21:58:07 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 551c4f6e1..411e328d1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +changes in my fork +================== +1. process .css same as .less(that means @import a .css file is just as @import a .less file. So you can write less syntax in *.css) + # [Less.js v1.6.0](http://lesscss.org) > The **dynamic** stylesheet language. [http://lesscss.org](http://lesscss.org). @@ -347,4 +351,4 @@ Licensed under the [Apache License](LICENSE). [so]: http://stackoverflow.com/questions/tagged/twitter-bootstrap+less "StackOverflow.com" [issues]: https://github.com/less/less.js/issues "GitHub Issues for Less.js" [wiki]: https://github.com/less/less.js/wiki "The official wiki for Less.js" -[download]: https://github.com/less/less.js/zipball/master "Download Less.js" \ No newline at end of file +[download]: https://github.com/less/less.js/zipball/master "Download Less.js"