Prettier likes parens a lot now

git blame is now broken forever.
This commit is contained in:
Adam Wathan 2020-10-16 15:39:44 -04:00
parent 8e4e0a0eb8
commit 38b4eeb288
69 changed files with 365 additions and 366 deletions

View file

@ -15,16 +15,16 @@ function buildDistFile(filename, config = {}, outFilename = filename) {
from: `./${filename}.css`,
to: `./dist/${outFilename}.css`,
})
.then(result => {
.then((result) => {
fs.writeFileSync(`./dist/${outFilename}.css`, result.css)
return result
})
.then(result => {
.then((result) => {
const minified = new CleanCSS().minify(result.css)
fs.writeFileSync(`./dist/${outFilename}.min.css`, minified.styles)
})
.then(resolve)
.catch(error => {
.catch((error) => {
console.log(error)
reject()
})

View file

@ -13,12 +13,12 @@ function build({ from, to, config }) {
.process(css, {
from: undefined,
})
.then(result => {
.then((result) => {
fs.writeFileSync(`./${to}`, result.css)
return result
})
.then(resolve)
.catch(error => {
.catch((error) => {
console.log(error)
reject()
})