Repository URL to install this package:
|
Version:
3.6.2 ▾
|
/**
* @fileoverview removes any exisitng build output.
* @file side-effect-only
*/
import trash from 'trash'
import { resolveToRoot } from '../resolveToRoot'
import config from '../oneConfig/getConfigForEnv'
function clean() {
const buildOutputPath = config('buildOutputPath')
const outputPath = resolveToRoot(buildOutputPath)
trash(outputPath).then(() => {
console.log(`Cleaned ${outputPath}`)
})
}
clean()