Prettier likes parens a lot now
git blame is now broken forever.
This commit is contained in:
parent
8e4e0a0eb8
commit
38b4eeb288
69 changed files with 365 additions and 366 deletions
|
|
@ -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()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue