traefik/webui/dev/scripts/transfer.js
Antoine 70359e5d27
Replace go-bindata with Go embed
Co-authored-by: nrwiersma <nick@wiersma.co.za>
2021-09-15 10:36:14 +02:00

16 lines
371 B
JavaScript

const fs = require('fs-extra')
const folder = process.argv[2]
async function execute () {
try {
await fs.emptyDir('./static')
console.log('Deleted static folder contents!')
await fs.copy(`./dist/${folder}`, './static', { overwrite: true })
console.log('Installed new files in static folder!')
} catch (err) {
console.error(err)
}
}
execute()