Skip to content

Commit

Permalink
fix: build css min warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Apr 13, 2024
1 parent a8aab9b commit e0a90ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/mincss.js
Expand Up @@ -9,7 +9,7 @@ const files = fs
files.forEach(file => {
file = path.resolve('lib/themes', file);
cssnano
.process(fs.readFileSync(file))
.process(fs.readFileSync(file), { from: file })
.then(result => {
file = file.replace(/\.css$/, '.min.css');
fs.writeFileSync(file, result.css);
Expand Down

0 comments on commit e0a90ab

Please sign in to comment.