mirror of https://github.com/IoTcat/docsify.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
313 B
12 lines
313 B
const cssnano = require('cssnano').process |
|
const path = require('path') |
|
const fs = require('fs') |
|
|
|
files = fs.readdirSync(path.resolve('lib/themes')) |
|
|
|
files.forEach(file => { |
|
file = path.resolve('lib/themes', file) |
|
cssnano(fs.readFileSync(file)).then(result => { |
|
fs.writeFileSync(file, result.css) |
|
}) |
|
})
|
|
|