unpkg/server/middleware/utils/readCSS.js

10 lines
213 B
JavaScript
Raw Normal View History

2017-08-18 19:57:42 +00:00
const fs = require('fs')
const path = require('path')
const csso = require('csso')
function readCSS(...args) {
return csso.minify(fs.readFileSync(path.resolve(...args), 'utf8')).css
}
module.exports = readCSS