pulsar/script/lib/clean-output-directory.js
2017-01-25 11:13:42 -05:00

10 lines
248 B
JavaScript

const fs = require('fs-extra')
const CONFIG = require('../config')
module.exports = function () {
if (fs.existsSync(CONFIG.buildOutputPath)) {
console.log(`Cleaning ${CONFIG.buildOutputPath}`)
fs.removeSync(CONFIG.buildOutputPath)
}
}