Reputation: 97
What is the difference between preprocess and precompile in assets pipeline of the ruby on rails?
Upvotes: 0
Views: 258
Reputation: 1035
Preprocess - a process that transforms your code into either css, html or js before you sent it to your browser. This is usually when you use (redundant here) preprocessors such as coffeescript, erb, scss, etc. I must say that the order is important when using preprocess.
Precompile - happens before you send your code to production using rake assets:precompile
. It makes sure your code is compilable (made up word) and put them in public/assets
If you want more info, a quick google search can return multiple of articles. Here is one
Upvotes: 1