presta
Version:
Hyper minimal framework for the modern web.
15 lines (11 loc) • 334 B
text/typescript
import fs from 'fs-extra'
import path from 'path'
import * as logger from './log'
import { Presta } from './types'
export function removeBuiltStaticFile(file: string, config: Presta) {
logger.debug({
label: 'debug',
message: `removing old static file ${file}`,
})
fs.remove(path.join(config.staticOutputDir, file))
}