What is the difference between the preprocessors and postprocessors?

0 like 0 dislike
2 views
What is the difference between the preprocessors and postprocessors?
by | 2 views

2 Answers

0 like 0 dislike
The whole point of one picture:
tZjTgV.png

Preprocessors make all sorts of stuff like SCSS to CSS.
Post processors "improve" ready made CSS (autoprefix, for example).
And Yes, you can collect to customize this toolchain that will do all these manipulations in a single pass.
by
0 like 0 dislike
The preprocessor significantly expands opportunities and provides more convenient syntax. The preprocessor accepts the data(your code stylus/sass/less) and gives (compiles to css)
A post - processor works with the css itself (post-processing - post-processing) for example framing vendorname prefixes.

In General, they need to combine for example
Please write stylus code
.container box-sizing border-box

it is compiled in
.container { box-sizing: border-box; }

next, we use the postprocessor(autoprefix) and obtain
.container { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,912 users