chore: remove fuck cssnano-cli
This commit is contained in:
parent
8974f3964e
commit
95e95bd23b
3 changed files with 25 additions and 62 deletions
12
build/mincss.js
Normal file
12
build/mincss.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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)
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue