Forums

Should I minify my static files?

I know that PA can quickly serve static files right off the disk with the static files routing. My question is that if it is necessary to minify the static files.

If so, is there a way to compile the static files on app boot so I do not have to run a css/js minifier on each git push when I modify the static file?

it might not be a great idea to hook up static file minifying with app reload (sounds like it will slow down app reload significantly). how about a git push/pre-commit hook that also runs the minifier?