配置
下载
npm install jquery --save
 
在build的webpack.base.conf中
var webpack=require("webpack")
 

在module.exports中:
   plugins: [
//   new webpack.optimize.CommonsChunkPlugin('common.js'),
  new webpack.ProvidePlugin({
    jQuery: "jquery",
    $: "jquery"
  })
],
 

使用
在具体页面的script中引入:
import $ from 'jquery'










