In the vue project, it is clear that the prompt information output on the console has been turned off through the following configuration, but it will still be printed?
Vue.config.productionTip = false Vue.config.devtools= false Vue.config.debug= false
1. Problem Analysis:
And when our vue project index.html or other entry interfaces to load some scripts into the project and packaged, these scripts will not produce the corresponding source mapping, but the mapping file (sourceMappingURL) is declared in the script, at this time the browser naturally throws an exception, so the console prints not the output of the project itself, but Chrome’s prompt!
We just need to remove the above mentioned //# sourceMappingURL= xxxxxxx line from the corresponding statically introduced script, or download the corresponding source mapping file and place it in the directory where the corresponding script is located, depending on the boot version.