I
I
Ivan-P2015-11-24 18:58:31
gulp.js
Ivan-P, 2015-11-24 18:58:31

Why is PostCSS needed if there is Gulp and its plugins?

The information on the web is very vague. The very first argument in many - without PostCSS you need mixins with prefixes, or you will even write prefixes manually. It is also mentioned that PostCSS is great at minifying css.
But after all, these and many other tasks can be easily done with the help of Gulp plugins, of which there are hundreds for every taste.
What then is the beauty and advantage of PostCSS?
What can PostCSS do that Gulp can't?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Eremenko, 2015-11-24
@c01nd01r

It's not that it's better or something...
PostCSS is a little bit about something else.
It provides an API for working with the CSS it receives as input. And PostCSS plugins use this interface to customize/modify/whatever-your-plugin-does.
Those. this is another tool for working with styles.
You can use it with gulp, you can use it instead of gulp.
Use it the way you want.

A
Alexey Ukolov, 2015-11-24
@alexey-m-ukolov

What is the point of PostCSS today?

A
Alex Elgin, 2018-04-29
@sijio

Gulp only provides general tools for building a package. Gulp's CSS tools are far inferior to what PostCSS offers.
PostCSS, through a large number of plugins , provides tools specifically for handling CSS. PostCSS parses the CSS file passed to it, creating a virtual structure in memory for the described styles. This provides more options for their processing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question