What is the difference between the preprocessors and postprocessors?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
12 views
What is the difference between the preprocessors and postprocessors?
by | 12 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,187 answers
0 comments
40,796 users