mirror of
https://github.com/traefik/traefik.git
synced 2025-05-05 15:33:01 +00:00
fix: generated placeholder for the webui
This commit is contained in:
parent
6559d63d3c
commit
af855ef7b4
@ -5,7 +5,7 @@ const folder = process.argv[2]
|
|||||||
async function execute () {
|
async function execute () {
|
||||||
try {
|
try {
|
||||||
await fs.emptyDir('./static')
|
await fs.emptyDir('./static')
|
||||||
await fs.outputFile('./static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md', 'For more information show `webui/readme.md`')
|
await fs.outputFile('./static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md', 'For more information see `webui/readme.md`')
|
||||||
console.log('Deleted static folder contents!')
|
console.log('Deleted static folder contents!')
|
||||||
await fs.copy(`./dist/${folder}`, './static', { overwrite: true })
|
await fs.copy(`./dist/${folder}`, './static', { overwrite: true })
|
||||||
console.log('Installed new files in static folder!')
|
console.log('Installed new files in static folder!')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user