PostCSS plugin for basisjs-tools
npm install --save-dev basisjs-tools-postcss-plugin
npm install --save-dev postcss autoprefixer postcss-cssnext
Add to basis.config these settings:
{
"plugins": [
{
"name": "basisjs-tools-postcss-plugin",
"options": {
"processors": [
"autoprefixer",
"postcss-cssnext"
]
}
}
]
}
For more custom configuration use:
{
"plugins": [
{
"name": "basisjs-tools-postcss-plugin",
"options": {
"processors": [
{
"name": "autoprefixer",
"options": {
"browsers": "last 2 versions"
}
},
{
"name": "postcss-cssnext",
"options": {
"features": {
"customProperties": false
}
}
}
]
}
}
]
}