webpack中设置jquery为全局对象 第二个是过滤包添加cdn

plugins: [ new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery", "window.jQuery": "jquery" }) ],

externals: {
vue : 'Vue',
"element-ui": 'ELEMENT',
'vue-router': 'VueRouter',
"animate":"Animate"
},
 

猜你喜欢

转载自www.cnblogs.com/liuliang389897172/p/10863298.html