在Brunch中引用节点模块的.style

时间:2013-03-25 14:42:21

标签: node.js twitter-bootstrap stylus brunch chaplinjs

我有一个早午餐与卓别林应用程序。我想使用Twitter Bootstrap,但由于它是用LESS编写的,我更愿意切换到手写笔版本。幸运的是,那里有一个bootstrap-stylus node_module。 所以我通过npm install bootstrap-stylus安装它。但是,我如何引用模块内部的手写笔文件?做

@import 'bootstrap-stylus'

不起作用。也没有附加/lib/bootstrap路径。

"bootstrap-stylus": ">= 0.2"文件中的dependencies中有package.json,但仍然没有。有任何想法吗?感谢。

2 个答案:

答案 0 :(得分:0)

npm安装到你的node_modules文件夹中,你可以从那里@import手写笔文件。

在我的测试中起作用的行是:

@import 'node_modules/bootstrap-stylus/lib/bootstrap.styl'

答案 1 :(得分:-5)

node_modules适用于node.js.早午餐是前端/ html5。你无法将它们组合起来那么简单。

您需要手动将内容复制到appvendor目录。