All Downloads are FREE. Search and download functionalities are using the official Maven repository.

smaller.csso.0.8.5.source-code.csso.js Maven / Gradle / Ivy

There is a newer version: 0.8.8
Show newest version
var csso = require('csso');
var fs = require('fs');
var path = require('path');

module.exports = function(command, done) {
  if (!command.file) { 
    throw new Error("No input file specified");
  }
  fs.writeFileSync(
      path.join(command.outdir, command.file), 
      csso.justDoIt(
          fs.readFileSync(
              path.join(command.indir, command.file), 
              {encoding:'utf8'})));
  done(command.file);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy