css2pre
css2pre css2less,css2scss
Last updated 2 years ago by sunjian .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install css2pre 
SYNC missed versions from official npm registry.

css2pre


该库用于将css转换为预处理语言, 列如less,scss;

  • 无依赖
  • 简明的api
  • 最大兼容
  • 最小合并
  • 保留顺序
  • 保留注释

优点

最大兼容,在保留原css顺序,注释等内容的基础上,最小合并相邻的块;

1. 开始

import css2pre from '../lib/css2pre'

let less = css2pre('html, body{ margin:0;padding:0; }')
    .to('less')

2. 待办事宜

  • [x] 嵌套, 缩进
  • [x] 保留注释
  • [x] 保留顺序
  • [ ] 浏览器私有前缀

3. 示例

Current Tags

  • 1.1.2                                ...           latest (2 years ago)

8 Versions

  • 1.1.2                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (12)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |