beginners, initialize the project with vue-cli and webpack,
now want to introduce a non-modular js file,
this file has the following characteristics:
- wants to make global references, such as the js file in the css library
- there is no need to modify it
- itself is only written in the original js file, and it is not in the npm library
searched for related problems and carried out a small amount of practice. The simplest method is to introduce it directly into the index.html file in the traditional way, which can be used globally, but this will lead to the check of eslint
. other ways, such as webpack"s external, but I didn"t find the so-called webpack.config.js file. I don"t know what to do.
there are also some methods that use jquery as an example, but jquery can be installed through npm, and it only has a function name of $, which is special and doesn"t seem to be applicable.
want a good way to introduce third-party non-modular js files into it.