Skip to content

basisjs/basisjs-tools-postcss-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm

PostCSS plugin for basisjs-tools

Install

Install plugin

npm install --save-dev basisjs-tools-postcss-plugin

Install PostCSS and plugins you want

npm install --save-dev postcss autoprefixer postcss-cssnext

Usage

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
              }
            }
          }
        ]
      }
    }
  ]
}

About

PostCSS plugin for basisjs-tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published