diff options
Diffstat (limited to 'core/scripts/css/compile.js')
-rw-r--r-- | core/scripts/css/compile.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/scripts/css/compile.js b/core/scripts/css/compile.js index 8a4e68f65fc..1711e046210 100644 --- a/core/scripts/css/compile.js +++ b/core/scripts/css/compile.js @@ -68,12 +68,11 @@ module.exports = (filePath, callback) => { }) ]) .process(css, { from: filePath }) - .then(result => { - callback(prettier.format(result.css, { - parser: 'css', - printWidth: 10000, - })); - }) + .then(result => prettier.format(result.css, { + parser: 'css', + printWidth: 10000, + })) + .then(callback) .catch(error => { log(error); process.exitCode = 1; |