14 lines
336 B
Python
14 lines
336 B
Python
import os
|
|
|
|
os.system('npm run build')
|
|
for file in os.listdir('dist'):
|
|
if file.endswith('.vcd'):
|
|
os.remove('dist/' + file)
|
|
|
|
with open('./dist/index.html', 'r', encoding='utf-8') as fp:
|
|
html = fp.read()
|
|
|
|
html = html.replace("''", "'<root>'")
|
|
|
|
with open('./dist/index.html', 'w', encoding='utf-8') as fp:
|
|
fp.write(html) |