As for webpack to connect postcss-merge-rules?

Welcome!

Tell me how to connect to wepback library postcss-merge-rules? I want to achieve the same bonding classes and css properties have the same elements.

Assume that the connection of this plugin you need to make here, but it need to connect? Part of the code of webpack.config.js:

{
 loader: 'postcss-loader',
 options: {
 ident: 'postcss',
 sourceMap: !isProduction,
 plugins: (() => {
 return isProduction ? [
require('autoprefixer')(),
require('cssnano')({
 preset: ['default', {
 minifySelectors: true
}]
})
 ] : []
})()
}
 }


Long gugleniya and the enumeration of the different connectivity options of this library gave no results...

Thank you!
March 12th 20 at 07:55
1 answer
March 12th 20 at 07:57
Solution
And to go to the link and see an example of using postcss tried? Yet it is written.
https://github.com/postcss/postcss#usage
What is not clear?
And to go to the link and see an example of using postcss tried? Yet it is written.

of course

What is not clear?

Tell me how to connect to wepback library postcss-merge-rules
- harmony_Ankundi commented on March 12th 20 at 08:00
@harmony_Ankundiand wepback what does? You the link looked like postcss plugins are used. So why similar not to make? ))) - Titus.Fahey commented on March 12th 20 at 08:03

Find more questions by tags Webpack