Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

sheetify-nested

1.0.2 • Public • Published

sheetify-nested stability

npm version build status test coverage downloads js-standard-style

Sheetify plugin to unwrap nested rules.

// in.js
var css = require('sheetify')

css`
  :host {
    .input {
      color: blue;
    }
    .button {
      &:hover, &:focus {}
    }
  }
`
/* out.css */
._5e252abd .input {
    color: blue;
}
._5e252abd .button:hover,._5e252abd .button:focus {}

Command line

$ browserify ./test/in.js -t [ sheetify/transform -u sheetify-nested ]

JS api

const browserify = require('browserify')
 
browserify()
  .transform('sheetify/transform', { use: [ 'sheetify-nested' ] })
  .bundle()

Installation

$ npm install sheetify-nested

License

MIT

install

npm i sheetify-nested

Downloadsweekly downloads

20

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability