1.0.2 • Published 5 years ago

@motork/postcss-custom-properties-transform v1.0.2

Weekly downloads
4
License
ISC
Repository
bitbucket
Last release
5 years ago

PostCSS Custom Properties transform

PostCSS plugin that allows transformation of color values from hex to rgb and their usage in CSS Custom Properties. This plugin can be used with Webpack's PostCSS loader.

Installation

npm i -D @motork/postcss-custom-properties-transform

Example usage with webpack

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          {
            loader: "postcss-loader",
            options: {
              plugins: [require("@motork/postcss-custom-properties-transform")]
            }
          }
        ]
      }
    ]
  }
};
1.0.2

5 years ago