https://github.com/anthonyshort/component-whitespace
Component plugin to compile styles using css-whitespace
https://github.com/anthonyshort/component-whitespace
Last synced: about 2 months ago
JSON representation
Component plugin to compile styles using css-whitespace
- Host: GitHub
- URL: https://github.com/anthonyshort/component-whitespace
- Owner: anthonyshort
- Created: 2013-06-08T11:37:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-06-08T11:37:58.000Z (almost 12 years ago)
- Last Synced: 2025-01-30T21:29:58.727Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# component-whitespace
Compile styles using css-whitespace.
## Installation
```
npm install component-whitespace
```## Usage
```
component build --use component-whitespace
```Add your files to the `styles` section of your `component.json`
```
{
"name": "foo",
"path": ["local"],
"styles": ["index.styl"]
}
```Now this:
```
.foo
.bar
color: red
```Will be converted to this:
```css
.foo .bar {
color: red;
}
```