.option('--s0', 'Remove all special comments (i.e. /*! special comment */)')
.option('--s1', 'Remove all special comments but the first one')
.option('-r, --root [root-path]', 'Set a root path to which resolve absolute @import rules')
- .option('-o, --output [output-file]', 'Use [output-file] as output instead of stdout');
+ .option('-o, --output [output-file]', 'Use [output-file] as output instead of stdout')
+ .option('-s, --skip-import', 'Disable the @import processing');
commands.on('--help', function() {
util.puts(' Examples:\n');
cleanOptions.keepSpecialComments = 0;
if (commands.root)
cleanOptions.root = commands.root;
+if (commands.skipImport)
+ cleanOptions.processImport = false;
if (commands.args.length > 0) {
var source = commands.args[0];
options.source = source;
else
exec('rm ./reset-min.css');
}
+ }),
+ 'disable @import': binaryContext('-s ./test/data/imports.css', {
+ 'should disable the import processing': function(error, stdout) {
+ assert.equal(stdout, "@import url(./partials/one.css);@import url(./partials/two.css);.imports{color:#000}");
+ }
})
});