You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, this seems like an issue that someone else would have reported by now if it were "real", but searching got me nothing.
I have a concat task, that adds a banner with a list of all concatted files. This works when used independantly via grunt concat:concatModule. When fired from a newer:concat via watch when saving one of the files in concat:concatModule's src list, it does not properly print the list of files. The files are concatted correctly and the banner and footer are added - it's only the file list being printed via grunt.task.current.data which doesn't work.
Digging into it, it seems like the src and dest are in grunt.task.current.data.files[0]. I thought, "okay, that makes sense, the newer task has its own data, so the originals are nested in here - I can if around that". But when attempting to write the file list from that location, it seems like the newer task either doesn't properly write to the output, or maybe the banner is processed a second time and the task no longer has references to either grunt.task.current.data or grunt.task.current.data[0].files.
I'm pretty sure the process option on the concat task and the module wrapper strings added to the task are NOT the reason for this error, but I've included them for completeness.
Hey, this seems like an issue that someone else would have reported by now if it were "real", but searching got me nothing.
I have a concat task, that adds a banner with a list of all concatted files. This works when used independantly via
grunt concat:concatModule
. When fired from anewer:concat
via watch when saving one of the files inconcat:concatModule
's src list, it does not properly print the list of files. The files are concatted correctly and the banner and footer are added - it's only the file list being printed viagrunt.task.current.data
which doesn't work.Digging into it, it seems like the src and dest are in
grunt.task.current.data.files[0]
. I thought, "okay, that makes sense, the newer task has its own data, so the originals are nested in here - I canif
around that". But when attempting to write the file list from that location, it seems like the newer task either doesn't properly write to the output, or maybe the banner is processed a second time and the task no longer has references to eithergrunt.task.current.data
orgrunt.task.current.data[0].files
.I'm pretty sure the
process
option on the concat task and the module wrapper strings added to the task are NOT the reason for this error, but I've included them for completeness.Expected banner output:
Generated banner output:
Here is the simplified Gruntfile
The text was updated successfully, but these errors were encountered: