【问题标题】:How to use Bootstrap Stylus with requireJS?如何将 Bootstrap Stylus 与 requireJS 一起使用?
【发布时间】:2015-08-11 14:15:46
【问题描述】:

Bootstrap Stylus文件夹中有12个js文件(affix、alert、button、carousel、collapse、dropdown、modal、popover、scrollpsy、tab、tooltip、transition)。有一个文件在名为 index.js 的根文件夹中,但它看起来是一个 Node 模块文件,我不知道如何在 requireJS 中使用这些文件

【问题讨论】:

    标签: javascript node.js requirejs npm stylus


    【解决方案1】:

    Bootstrap Stylus 应该在之前编译,它会生成 'dist' 文件夹,其中包含将在 requireJS 中使用的文件。

    您需要使用终端导航到 boostrap-styl 文件夹并运行:

    grunt dist
    

    【讨论】:

      猜你喜欢
      • 2012-12-13
      • 2016-03-31
      • 2019-07-24
      • 2018-03-27
      • 2016-02-15
      • 2020-01-31
      • 1970-01-01
      • 2013-05-23
      • 1970-01-01
      相关资源
      最近更新 更多