Update compile

Npm use production mode only when NODE_ENV is "production"