1.——>> 首先安装jquery
cnpm install jquery --save
2.——>> 在build–webpack.base.conf.js文件中配置
const webpack = require('webpack');
//在moudle.exports 中添加
plugins:[
newwebpack.optimize.CommonsChunkPlugin('common.js'),
newwebpack.ProvidePlugin({
jQuery:"jquery",
$:"jquery"
})
]