How to use nodejs to generate routing files for vue projects

problem description

when developing a vue project, you need to add relevant configurations to the routing file each time you add a new page. Whether it can be implemented using node, enter new file name to automatically add the relevant JS to route.js . If so, which knowledge should I search

?

the environmental background of the problems and what methods you have tried

if you use writeFile to the original route.js file in string format, how to keep things like indentation so that exceptions can be maintained manually

Apr.02,2021

you can see how Baidu lavas is implemented

https://sourcegraph.com/githu.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e004-3478b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e004-3478b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?