@iosio/jcss

0.0.2 • Public • Published

@iosio/jcss

custom babel plugin for template string css autoprefixing and minifying

Installation

npm install @iosio/jcss --save-dev

Usage

Include the following in your babelrc or babel.config.js file

{
  "plugins":[
    ["@iosio/jcss"]
  ]
}

Babel will look for the tag 'jcss' with a tagged string, run the post css and minifying and remove the tag

export const styles = jcss`   
        :host{
            display:flex;
            align-items:center;
            user-select:none;
        }
`;

Results will look something like this

export const styles = `:host{display:flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`;

Package Sidebar

Install

npm i @iosio/jcss

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

7.41 kB

Total Files

3

Last publish

Collaborators

  • iosio