Answer the question
In order to leave comments, you need to log in
What is more efficient to glue and minify js css?
Framework.
Server side, like nginx.
Console command when pushing to the server.
It is clear that the three options have the right to life, but I wonder how large projects like stackoverflow or even the toaster itself do this?
Answer the question
In order to leave comments, you need to log in
Google Closure Compiler. Whoever finds better - throw a stone at me.
PS And Plovr for configs.
I organized the work somehow like this: there is an assets directory, in which js-ok sources, less files, pictures for design, etc. Collects this case now gulp, earlier grunt and lays down in webroot where he is told. Moreover, watchers are configured for development (you can also do it in ide, but developers do not always use them, some use vim, and it’s corny more convenient) and liveload, so you don’t need to reload the page during development, which slightly reduces time costs. Well, image optimization is also configured for the assembly.
Actually, when a push is made to the master, the project assembly starts on the server (asset assembly, cache warmup, installation of dependencies) and then all this already flows to the server, where migrations are processed and the server is reloaded (nginx reload with switching symlinks)
I "minify" through file watchers in phpstorm
And the build is handled by a script through git hooks
Toaster has nothing minified at all, only concat.
I would look towards the node, grunt.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question