You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,18 @@ let minified = minify("a {}");
79
79
let formatted_mini =format("a {}", { minify:true });
80
80
```
81
81
82
+
## Tab size
83
+
84
+
For cases where you cannot control the tab size with CSS there is an option to override the default tabbed indentation with N spaces.
85
+
86
+
```js
87
+
import { format } from"@projectwallace/format-css";
88
+
89
+
let formatted =format("a { color: red; }", {
90
+
tab_size:2
91
+
});
92
+
```
93
+
82
94
## Acknowledgements
83
95
84
96
- Thanks to [CSSTree](https://github.com/csstree/csstree) for providing the necessary parser and the interfaces for our CSS Types (the **bold** elements in the list above)
0 commit comments