1.0.4 • Published 6 years ago

vue-css-format v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

##vue-css-format

vue-css-format is a tool that automatically format your css code, support css、less、scss and vue

usage

  • install
npm install vue-css-format --save-dev
  • write the following js file
var format = require('vue-css-format');
var path = require('path')

format(path.resolve()) // the directory want to format
  • run the js code
node index.js

case

input

a {
    height: 10px;
    b{height:10px;}
}

ouput

a {
    height: 10px;
b {
    height: 10px;
}

}

#### feature
- base on [stylefmt](https://github.com/morishitter/stylefmt) that can work with [stylelint](https://stylelint.io/)

### License
The MIT License