- npm install -g @linhun/jane-cli
- jane --help
- css
let less = require('less')
let fs = require('fs')
// {file:'path'}
module.exports = (option)=>{
return new Promise((resolve,rej)=>{
less.render(fs.readFileSync(option.file,'utf8'))
.then(function(output) {
resolve(output)
},
function(error) {
rej(error)
})
})
}
- js 基于babel babel插件文档