1. vue-css-format

vue-css-format

##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

License

The MIT License