Fix empty WebUI static assets directory
This commit is contained in:
parent
6974f54bfd
commit
fb23bd5d26
11 changed files with 27 additions and 19 deletions
|
@ -5,6 +5,7 @@ const folder = process.argv[2]
|
|||
async function execute () {
|
||||
try {
|
||||
await fs.emptyDir('./static')
|
||||
await fs.outputFile('./static/DONT-EDIT-FILES-IN-THIS-DIRECTORY.md', 'For more information show `webui/readme.md`')
|
||||
console.log('Deleted static folder contents!')
|
||||
await fs.copy(`./dist/${folder}`, './static', { overwrite: true })
|
||||
console.log('Installed new files in static folder!')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue