S
S
sandrain2014-03-11 12:53:15
PHP
sandrain, 2014-03-11 12:53:15

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

5 answer(s)
S
sergealmazov, 2014-03-11
@sandrain

Google Closure Compiler. Whoever finds better - throw a stone at me.
PS And Plovr for configs.

S
Sergey, 2014-03-11
Protko @Fesor

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)

A
Anton Piskunov, 2014-03-11
@antonydevanchi

gulp.js, grunt.js

D
donflash, 2014-03-11
@donflash

I "minify" through file watchers in phpstorm
And the build is handled by a script through git hooks

N
Nikita Baev, 2014-03-11
@drugoi

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 question

Ask a Question

731 491 924 answers to any question