Answer the question
In order to leave comments, you need to log in
What to do with vendors when building a frontend? How to compress?
In order to please Google (holivar! 1111 urra), we need to compress all javascripts and styles into a single file.
Their files are compressed in general without any problems
Jokes come with vendors, as well as with additional files such as different fonts
How it looks:
/assets
-- /img
-- /stylus
-- /js
-- /fonts
-- /audio
-- /video
-- /ещеКакаяТоПапкаИНафигаОнаЗдесьВообще...
/dev
-- /img
-- /css
-- /js
/public
-- /img
-- /css
-- /js
../../logo.jpg
main.min.css / main.min.js
vendors must get into the file (I mean libraries, for example jquery, or there webhostinghub-glyphs, or fancybox) including, even if with the help of gulpa the scripts and styles from them are combined into one file along with my code, keeping the order, then the rest of the library remains in assets, and it is not in the public.Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question