The grunt-contrib-concat plugin frustratingly provides no built-in
mechanism for throwing a fatal error when one or more files are not found - it simply skips over them. I submitted a
PR that provides support for such functionality, but there's
been no movement yet. As a stop-gap, I present the grunt-concat-verify
plugin, which provides functionality that should
be built into grunt-concat-verify.
Define a configuration object for concat-verify
. Specify targets that correspond to the grunt-contrib-concat
targets
that you want to run verification against. If any files are found to be missing, an error will be thrown.
'concat-verify': {
'dist': {},
'standalone': {}
}
You can get some additional info by running: $ grunt concat-verify --verbose