V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
yulanggong
V2EX  ›  分享创造

一个 CSS 转 LESS, SASS, Stylus 的工具

  •  
  •   yulanggong ·
    yulanggong · 2015-07-03 18:55:43 +08:00 · 15808 次点击
    这是一个创建于 3218 天前的主题,其中的信息可能已经有所发展或是发生改变。
    基于 quentint 的 Least 修改而来,主要用于把旧项目中的 CSS 升级到一种 CSS 预处理器。

    Least 原有功能:
    把 CSS 转换成有嵌套结构的 LESS, SASS, Stylus
    设置缩进

    我增加的功能:
    预置变量,把 CSS 内相同的值替换成变量
    保留注释
    去掉 hack 和带厂商前缀的兼容性代码

    http://yulanggong.github.io/Least/
    2 条回复    2018-04-18 22:03:38 +08:00
    mt1992
        1
    mt1992  
       2018-04-18 22:03:22 +08:00
    一个 stylus 转换工具,将 stylus 转换为 sass 或 less 或其他预编译 CSS。

    github.com/TaoXuSheng/stylus-converter
    mt1992
        2
    mt1992  
       2018-04-18 22:03:38 +08:00
    一个 stylus 转换工具,将 stylus 转换为 sass 或 less 或其他预编译 CSS。

    ://github.com/TaoXuSheng/stylus-converter
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3207 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:33 · PVG 20:33 · LAX 05:33 · JFK 08:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.