mirror of
https://github.com/hanzoai/tailwindcss.git
synced 2026-09-24 17:03:14 +00:00
Prettier likes parens a lot now
git blame is now broken forever.
This commit is contained in:
+3
-3
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user