Skip to content

Commit

Permalink
Tools: Restore perfectionist in generate
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Jul 28, 2018
1 parent 56e7b90 commit 751f289
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const fs = require("fs-extra");
const got = require("got");
const parse5 = require("parse5");
const path = require("path");
const perfectionist = require("perfectionist");
const urlToolkit = require("url-toolkit");

// This list maps old declarations to new ones. Ordering is not significant.
Expand Down Expand Up @@ -253,7 +254,8 @@ function buildOutput(decls) {
}

const selectors = decl.selector.join(",");
output += String(selectors + "{" + mappings[decl.mapping] + " !important}");
const rule =String(selectors + "{" + mappings[decl.mapping] + " !important}");
output += perfectionist.process(rule, perfOpts);
});

seen.forEach(decl => {
Expand Down

0 comments on commit 751f289

Please # to comment.