1:在public文件夹新建config.js
2在vue.config.js
3:在index.html中通过script标签引入
4在项目中使用
webpack指定文件不被打包vue
原文:https://www.cnblogs.com/binglove/p/11669642.html