BUG: fixes issue where dev environment required uglify and cssmin tasks to run

Moved variables only used for production into conditional statement.