1
0
Fork 0
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:
Tim Scanlin 2017-05-17 21:28:22 -07:00 committed by Arunoda Susiripala
parent 4d924ca90b
commit a8fdbb261e

View file

@ -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))