1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 13:44:15 +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

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);