1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-13 19:22:13 +00:00

chore: resolve codacy issues

This commit is contained in:
Cotes Chung 2024-11-21 02:49:47 +08:00
parent d9d8def9ea
commit 99c731e181
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808

View File

@ -20,8 +20,7 @@ function main() {
.then(() => fs.mkdir(DIST_PATH))
.then(() => new PurgeCSS().purge(config))
.then((result) => {
const dist = config.output.replace('.css', '.scss');
return fs.writeFile(dist, result[0].css);
return fs.writeFile(`${DIST_PATH}/bootstrap.scss`, result[0].css);
})
.catch((err) => {
console.error('Error during PurgeCSS process:', err);