Sorry, the diff of this file is not supported yet
@@ -1,3 +0,5 @@ | ||
| exports.concat = function(input) { | ||
| exports.concat = function(input, options) { | ||
| options = options || { | ||
| comments : true | ||
| }; | ||
| var fs = require('fs'), | ||
@@ -33,3 +35,3 @@ path = require('path'), | ||
| if (importIndex === index) { | ||
| if (importIndex === index && options.comments) { | ||
@@ -36,0 +38,0 @@ output += '/*' + seperator + '\n'; |
+4
-1
@@ -5,3 +5,3 @@ { | ||
| "description": "Concatenate @imported CSS files.", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "repository": { | ||
@@ -16,2 +16,5 @@ "type" : "git", | ||
| }, | ||
| "scripts" : { | ||
| "test" : "node test/test.js" | ||
| }, | ||
| "dependencies": {}, | ||
@@ -18,0 +21,0 @@ "devDependencies": {}, |
+5
-4
@@ -11,10 +11,11 @@ # CSS Concat | ||
| ## From command-line | ||
| CSS Concat reads from `input.css` and writes to `output.css`. If you don't specify `output.css` explicitly, it will write to `input-out.css`. | ||
| CSS Concat reads from `input.css` and writes to `output.css`. If you don't specify `output.css` explicitly, it will write to `input-out.css`. Options currently only consist of `--no-comments`, which will disable automatic generation of comments - this will _not_ strip comments from the source files! | ||
| css-concat [input.css] [output.css] | ||
| css-concat [input.css] ([output.css] [options]) | ||
| ## From another node-module | ||
| Calling concat with the path to your CSS file, you will get a string containing the same output as the command-line version, including comments. | ||
| Calling concat with the path to your CSS file, you will get a string containing the same output as the command-line version. By default, comments are enabled - to disable them just pass along the appropriate options object. | ||
| var cssConcat = require('css-concat'), | ||
| outputString = cssConcat.concat('path/to/your.css'); | ||
| options = { comments : true }, | ||
| outputString = cssConcat.concat('path/to/your.css', options); |
Sorry, the diff of this file is not supported yet
6664
10.79%18
5.88%139
2.21%21
5%