webpack 引用 jquery + bootstrap报错

webpack 引用 jquery + bootstrap , error : jQuery is not defind
在webpack.dev.conf.js plugins[] 加入
new webpack.ProvidePlugin({
  $: "jquery",
  jQuery: "jquery"
})

posted on 2017-03-05 17:42  vok_think  阅读(98)  评论(0编辑  收藏  举报

导航