Skip to content

feihe08/css2sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

css2sass

convert css file to sass file

what it does

css2sass is a easy way to convert css file to sass file. For example, it can convert

.container {
    display: block;
    width: 100px;
    height: 100px;   
}

to

.container
  display: block
  width: 100px
  height: 100px

how to use

var css2sass = require('css2sass')
var path = '/path/to/your/css/file/'
var targetPath = 'path/to/your/target/sass/file'
css2sass(path, targetPath)

note

the little function convert css file to sass file by regexp, and it can't find grammer error, so you shoule promise the css grammer is legal.

About

convert css file to sass file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published