.vue format is not the file that is ultimately introduced into the page. After being packaged by webpack, a normal js file will be generated. Just introduce this js file.
The first question is about the suffix. The suffix has nothing to do with VUE. Vue is just a special text file, even if you use .abc. This is all thanks to webpack. In the loaders configuration of webpack, you can give one or more loaders to the specified file. You can also think of these loaders as precompilation tools.
Old projects directly import vue.js files
You can try html. But this does not conform to the syntax of vue, it will report an error
.vue format is not the file that is ultimately introduced into the page. After being packaged by webpack, a normal js file will be generated. Just introduce this js file.
Deploy the old project to v-cli, then reference the .vue component, and then package it with webpack
The first question is about the suffix.
The suffix has nothing to do with VUE. Vue is just a special text file, even if you use .abc.
This is all thanks to webpack. In the loaders configuration of webpack, you can give one or more loaders to the specified file. You can also think of these loaders as precompilation tools.
Second question, vue small project is similar to the usage of third-party libraries