less compilation in prod mode, client compilation in dev mode