mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
delete files only from outDir (#2001)
This commit is contained in:
parent
4d924ca90b
commit
a8fdbb261e
|
@ -25,7 +25,7 @@ export default async function (dir, options) {
|
|||
const buildStats = require(join(nextDir, 'build-stats.json'))
|
||||
|
||||
// Initialize the output directory
|
||||
await del(outDir)
|
||||
await del(join(outDir, '*'))
|
||||
await mkdirp(join(outDir, '_next', buildStats['app.js'].hash))
|
||||
await mkdirp(join(outDir, '_next', buildId))
|
||||
|
||||
|
|
Loading…
Reference in a new issue