grunt-max-filesize (npm): Throws an error if files are over a certain size.
Keywords: gruntplugin