1 | import fs from 'fs-extra'
|
2 | import path from 'path'
|
3 |
|
4 | import * as logger from './log'
|
5 | import { Presta } from './types'
|
6 |
|
7 | export function removeBuiltStaticFile(file: string, config: Presta) {
|
8 | logger.debug({
|
9 | label: 'debug',
|
10 | message: `removing old static file ${file}`,
|
11 | })
|
12 |
|
13 | fs.remove(path.join(config.staticOutputDir, file))
|
14 | }
|