【问题标题】:Import jquery npm package in meteor client app在流星客户端应用程序中导入 jquery npm 包
【发布时间】:2017-12-24 22:39:04
【问题描述】:

我尝试导入 jquery npm 包(它已经安装在项目中)而不是大气 js 包,但我想在整个客户端部分中导入它。我使用需要 jquery 的btws:bootstrap(还有很多其他的)。

我怎样才能做到这一点?

【问题讨论】:

    标签: meteor npm


    【解决方案1】:

    我建议你同时使用来自 npm 的 Bootstrap 和 jQuery。

    这样做:

    $ meteor remove twbs:boostrap
    $ meteor npm install --save bootstrap
    $ meteor remove jquery
    $ meteor npm install --save jquery
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-30
      • 2017-10-22
      • 2021-01-05
      • 2014-09-27
      • 1970-01-01
      • 2016-08-24
      • 2016-05-06
      • 2014-03-22
      相关资源
      最近更新 更多