我正在尝试在手写笔中使用Nib CSS3扩展。安装的手写笔和笔尖(尝试过本地和全球-g
)。但是当我这样做时,没有一个可行。
stylus styles.styl > build/styles.css
# styles.styl
@import "nib"
我得到了
/usr/lib/node_modules/stylus/bin/stylus:502
throw err;
^
Error: styles.styl:1
> 1| @import "nib"
2|
3| body
4| background: linear-gradient(top, white, black)
failed to locate @import file nib.styl
at Evaluator.visitImport (/usr/lib/node_modules/stylus/lib/visitor/evaluator.js:659:21)
at Evaluator.Visitor.visit (/usr/lib/node_modules/stylus/lib/visitor/index.js:28:40)
at Evaluator.visit (/usr/lib/node_modules/stylus/lib/visitor/evaluator.js:75:18)
at Evaluator.visitRoot (/usr/lib/node_modules/stylus/lib/visitor/evaluator.js:521:27)
at Evaluator.Visitor.visit (/usr/lib/node_modules/stylus/lib/visitor/index.js:28:40)
at Evaluator.visit (/usr/lib/node_modules/stylus/lib/visitor/evaluator.js:75:18)
at Evaluator.evaluate (/usr/lib/node_modules/stylus/lib/visitor/evaluator.js:150:15)
at Renderer.render (/usr/lib/node_modules/stylus/lib/renderer.js:69:26)
at /usr/lib/node_modules/stylus/bin/stylus:496:15
at fs.readFile (fs.js:176:14)
答案 0 :(得分:5)
是的我认为我错过了-u
旗帜,因为@Jonathan指出
答案 1 :(得分:0)
自动翻译的完整代码行是:
stylus -w -u nib test.styl -o test.css