使用stylus
?
?
1. 首先確保? node npm? 環境一切正常。
?
2. 全局安裝? stylus:
在命令行中:? ? ? ? ? ? npm i stylus@latest -g
?
3. 此時可以創建? .styl 文件, 并進行編輯。
?
4. 使用命令 將 .styl 文件 編譯為? .css? 文件:
stylus -c path/to/index.styl path/to/index.css? ?(單一文件)
stylus -c path/to/styl/? (編譯文件夾內所有的styl)
更多專業前端知識,請上 【猿2048】www.mk2048.com
總結
- 上一篇: APP网络测试要点和弱网模拟
- 下一篇: js 函数节流