Closed andrewnicols closed 8 years ago
Hi Fred,
It compresses by default and there is no flag to turn that off in grunt at this time.
At the moment, this patch already handles --debug (our gruntfile doesn't do anything interesting --debug). When --debug is set we already use LessC, and set the Compress Flag. There is no other way of setting the compress flag - it's only called when running --debug.
Thanks for the details, and the patch :dancer: !
I'm reading this patch and it looks kind of wrong to me? The grunt css command only handles moodle bootstrapbase sheets and not any random sheet passed - where as compiler = Grunt(source, os.path.join(source, sheet), os.path.join(dest, destSheet))
gives the impression it'll compile those sheets?
I like the patch, that's so cool that we've got a
Compiler
base class. Just a question though, does grunt support the flagscompress
anddebug
? If not, maybe we could keep a fallback on another compiler when those are set.