@workleap/postcss-plugin
All of Workleap’s default PostCSS plugins wrapped up in a single, easy-to-use plugin.
Installation
Install the following packages:
With pnpm
pnpm add -D @workleap/postcss-plugin postcss
With yarn
yarn add -D @workleap/postcss-plugin postcss
With npm
npm install -D @workleap/postcss-plugin postcss
Features
This plugin wraps around the following PostCSS transformations:
Usage
Configuration
Create a postcss.config.js
file at the root of your project with the following content:
/** @type {import("postcss").Postcss} */
module.exports = {
plugins: ["@workleap/postcss-plugin"]
};
Webpack integration
To integrate with Webpack, add the postcss-loader to the development and build configuration file:
{
module: {
rules: [
{
test: /\.css/i,
use: [
"style-loader",
"css-loader",
"postcss-loader"
]
}
]
}
}
License
Copyright © 2023, GSoft inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.