PostCSS plugin which holds other PostCSS plugins
npm install postcss-plugin-composition[PostCSS] plugin which holds other PostCSS plugins.
[PostCSS]: https://github.com/postcss/postcss
``js
const composition = require('postcss-plugin-composition');
postcss([
composition([
require('postcss-simple-vars')
require('postcss-modules')
]),
require('postcss-autoreset')
])
`
This module has very specific use-case. If you apply all plugins as is with postcss-modules.postcss-modules` executes all modules
You will see at the end your css repeated, because
for you.
That is why need to create composition of plugins that should be applied to each file.
And to the end add plugins which whill be applied to result.