Add production flag and task

Now we conditionally run/skip some operations related to sourcemaps and minification depending on they type of build (dev or production).