PostCSS plugin to add a default unit to your
rotate()
values.
$ npm i postcss-rotate-unit -D
Input
.foo{
transform: rotate(45);
}
Output
.foo{
transform: rotate(45deg);
}
By default the unit which will be added is deg
.
You can also define a custom unit:
var postcssRotateUnit = require('postcss-random');
var postcssProcessors = [
postcssRotateUnit({
default: 'turn'
})
]