How does vue-cli configure webpack to use observation mode?

how does rt,vue-cli configure webpack to use observation mode?

vue-cli has configured build.js to package the project using npm run build, so how do you configure an observation mode? The webpack document is started by "watch": "webpack-- watch", and it starts the observation mode, so what about entry and configuration in vue-cli?

Apr.02,2021

npm run build is a command executed in a production environment. There is no need for watch.
have you solved the problem that node build/build.js is actually executed through package.json npm run build


? I also want to know ~ ~ if solved, fill in the answer and turn off the question


I have to comment on the first floor,'I don't want to manually npm run build every time I test, I just want it to be packaged in real time.' Oh, just ignore it.

the folders you get after run build are for online, run server and running projects, which is already real-time.

Real-time build is meaningless.

for its part, the cli tool already has a complete webpack configuration and executes the development environment command-> run server (cli3). When you need to view the project in real time, watch is already enabled.
when you execute run build, you package the current project instead of running the current program / application, which generally generates a dist folder, which has nothing to do with watch.

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-1b38a60-344de.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-1b38a60-344de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?