@workleap/postcss-plugin

1.2.3 • Public • Published

@workleap/postcss-plugin

All of Workleap’s default PostCSS plugins wrapped up in a single, easy-to-use plugin.

License npm version

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.

Package Sidebar

Install

npm i @workleap/postcss-plugin

Weekly Downloads

0

Version

1.2.3

License

Apache-2.0

Unpacked Size

17.6 kB

Total Files

6

Last publish

Collaborators

  • tjosepo
  • infra.admin
  • alexasselin008
  • patricklafrance