When webpack dev server modifies the CSS and template of Vue, the page will refresh, and the modified script will not refresh automatically

As shown in the figure, modifying the style and template of Vue file will refresh automatically (red box part)
Modify the method in the script, and full reload will be displayed
Vue files are as follows
How to modify the configuration file so that the script can be refreshed automatically?,It’s normal When the impact of the change is relatively large, it needs to be refreshed,Is the version of scaffold relatively low? Modifying the script will also refresh. Whether this brush does not refresh has nothing to do with the file type you change. It is mainly responsible for monitoring whether changes have been made, and the changes will be refreshed

Read more here: Source link