mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
10 lines
255 B
JavaScript
10 lines
255 B
JavaScript
const fs = require('fs-extra')
|
|
const path = require('path')
|
|
|
|
module.exports = async () => {
|
|
await global.__BROWSER_SERVER__.close()
|
|
if (!process.env.VITE_PRESERVE_BUILD_ARTIFACTS) {
|
|
fs.removeSync(path.resolve(__dirname, '../packages/temp'))
|
|
}
|
|
}
|