如何从命令行使用带有手写笔的笔尖?

时间:2013-10-21 06:29:13

标签: command-line stylus

我有这个手写笔文件:

@import 'nib'

div
  background linear-gradient(red, blue)

我是npm install nib@import ed nib希望" gain access to everything nib has to offer",但是当我

> stylus file.styl

我得到的只是

failed to locate @import file nib.styl

缺少什么?

1 个答案:

答案 0 :(得分:9)

尝试use nib with:

> stylus -u nib file.styl

来自stylus --help

Options:
   -u, --use <path>        Utilize the Stylus plugin at <path>