wepack实战+解释https://segmentfault.com/a/1190000012828879
webpack运行时 https://blog.csdn.net/lancewu0907/article/details/76513231?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.control
<script src="http://xxx/tools.min.js"></script>
可以用
webpack.config中添加
externals: { mathTools: “tools” },
来全局引用