angular5新增全局的模块

比如新增一个全局的swiper,需要在webpack中配置:

之后在代码中就可以用了

原文地址:https://www.cnblogs.com/qianduanjingying/p/10308447.html