component-whitespace

css-whitespace plugin for Component

Usage no npm install needed!

<script type="module">
  import componentWhitespace from 'https://cdn.skypack.dev/component-whitespace';
</script>

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:

.foo .bar {
  color: red;
}