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

