summaryrefslogtreecommitdiffstatshomepage
path: root/core/scripts
diff options
context:
space:
mode:
authorLauri Eskola <lauri.eskola@acquia.com>2023-10-28 13:39:47 +0300
committerLauri Eskola <lauri.eskola@acquia.com>2023-10-28 13:39:47 +0300
commit7c5354ab5abbdd7b421c93d0aedb2aa69e9436f4 (patch)
treedc320a487a8ae14e1da12b76867e7a584fbc30a8 /core/scripts
parent830dbf1ddca79f4803ec61f543ea361dd925c32f (diff)
downloaddrupal-7c5354ab5abbdd7b421c93d0aedb2aa69e9436f4.tar.gz
drupal-7c5354ab5abbdd7b421c93d0aedb2aa69e9436f4.zip
Issue #3397121 by longwave: Upgrade postcss-preset-env and stylelint
Diffstat (limited to 'core/scripts')
-rw-r--r--core/scripts/css/compile.js11
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;