webpack 引用 jquery + bootstrap , error :
jQuery is not defind 或者
$ is not defined
使用webpack中的plugins中使用ProvidePlugin这个插件进行全局变量注册
在webpack.conf.js plugins[] 加入
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})

