---恢复内容开始---

在webpack.prod.conf.js文件中,找到plugins

 vue webpack添加jQuery

 

 


new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
})
在plugins的数组中加入上列代码,并且在npm 中安装jquery
npm install jquery -S

---恢复内容结束---

相关文章:

  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案