1.0.2 • Published 2 years ago
postcss-atomizer v1.0.2
postcss-atomizer
PostCSS plugin for Atomizer.
Installation
npm i postcss-atomizer postcss -DUsage
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`
}),
]
};