writes minified file by flag only