Skip to content

Commit

Permalink
See #944 - fixes code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubpawlowicz committed Jun 17, 2017
1 parent 56d43e1 commit a2511c9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/clean.js
Expand Up @@ -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 };
});
};


Expand Down

0 comments on commit a2511c9

Please sign in to comment.