See #944 - fixes code formatting.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 17 Jun 2017 11:07:24 +0000 (13:07 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 17 Jun 2017 11:07:24 +0000 (13:07 +0200)
lib/clean.js

index 7f2d544..8cdb4b7 100644 (file)
@@ -49,14 +49,16 @@ var CleanCSS = module.exports = function CleanCSS(options) {
 
 // for compatibility with optimize-css-assets-webpack-plugin
 CleanCSS.process = function (input, opts) {
+  var cleanCss;
   var optsTo = opts.to;
+
   delete opts.to;
+  cleanCss = new CleanCSS(Object.assign({ returnPromise: true, rebaseTo: optsTo }, opts));
 
-  var cleanCss = new CleanCSS(Object.assign({ returnPromise: true, rebaseTo: optsTo }, opts));
   return cleanCss.minify(input)
-  .then(function(output) {
-    return { css: output.styles };
-  });
+    .then(function(output) {
+      return { css: output.styles };
+    });
 };