Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
saaqi committed Jul 22, 2023
1 parent ea96997 commit 115f02f
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 7,112 deletions.
130 changes: 1 addition & 129 deletions assets/css/boxicons.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion assets/css/boxicons.min.min.css

This file was deleted.

30 changes: 30 additions & 0 deletions combinecss.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const fs = require('fs');
const path = require('path');

// Directory containing individual CSS files
const cssDirectory = path.join(__dirname, './assets/css/*.min.css');

// Output file where the combined CSS will be saved
const outputFilePath = path.join(__dirname, './assets/combined.css');

// Read all CSS files in the cssDirectory and concatenate their content
fs.readdir(cssDirectory, (err, files) => {
if (err) {
console.error('Error reading CSS files:', err);
return;
}

const cssContent = files
.filter(file => path.extname(file) === '.css')
.map(file => fs.readFileSync(path.join(cssDirectory, file), 'utf8'))
.join('\n');

// Write the combined CSS content to the output file
fs.writeFile(outputFilePath, cssContent, err => {
if (err) {
console.error('Error writing combined CSS file:', err);
return;
}
console.log('CSS files combined successfully!');
});
});
1 change: 1 addition & 0 deletions combinecss.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 115f02f

Please sign in to comment.