postcss-atomizer

1.0.2 • Public • Published

postcss-atomizer

PostCSS plugin for Atomizer.

Installation

npm i postcss-atomizer postcss -D

Usage

Update your project's postcss.config.js file by adding the atomizer plugin:

// postcss.config.js
const atomizer = require('postcss-atomizer');

module.exports = {
    plugins: [
        atomizer({ /* options */ }),
    ]
};

The plugin will automatically execute Atomizer based on your project's atomizer.config.js file and pass the rendered CSS to any additional plugins you configure.

Options

The available options follow the Options interface from Atomizer's TypeScript definition.

By default, the plugin will look for an atomizer.config.js file at the root of your project. If your config file is in another location, you use the config property to specify it:

module.exports = {
    plugins: [
        atomizerPlugin({
            config: `${process.cwd()}/path/to/atomizer.config.js`
        }),
    ]
};

Package Sidebar

Install

npm i postcss-atomizer

Weekly Downloads

24

Version

1.0.2

License

BSD-3-Clause

Unpacked Size

3.04 kB

Total Files

3

Last publish

Collaborators

  • redonkulus