Skip to content

arbor/jss-vendor-prefixer

Repository files navigation

Vendor prefixer plugin for JSS

This vendor prefixer knows which properties and values are supported in the current runtime and changes only whats required. The best thing is - you don't need to download all of them.Also it is very fast, all checks are cached. See example.

{
    '.container': {
        transform: 'translateX(100px)'
    }
}
.container {
    transform: -webkit-translateX(100px);
}

Register plugin

var jss = require('jss')
var vendorPrefixer = require('jss-vendor-prefixer')
jss.use(vendorPrefixer)

Run tests

Locally

npm i
open test/local.html

From github

Tests

License

MIT