webpack中设置jquery为全局对象 第二个是过滤包添加cdn
plugins: [ new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery", "window.jQuery": "jquery" }) ],
externals: {
vue : 'Vue',
"element-ui": 'ELEMENT',
'vue-router': 'VueRouter',
"animate":"Animate"
},