Closed KarlPurk closed 10 years ago
@KarlPurk are you still having issues with this?
@jgallen23 I don't think this is an issue. I think I this was just a case of using the wrong format for the task names in the aliases.yaml file. I think changing the 'html-snapshots' to 'htmlSnapshots' should fix the issue but can't confirm at the moment. Closing the issue for now and will reopen if required. Thanks.
Hi.
I have run into problems using load-grunt-config with tasks such as grunt-regex-replace and grunt-html-snapshots.
I have had success with the following tasks:
But I have had difficulties with these tasks:
I did manage to get grunt-regex-replace to work by adding the following to my Gruntfile.js file:
After adding the above to my Gruntfile.js the task ran as expected and the config was loaded from grunt/regex-replace.js.
However the same approach did not work for grunt-html-snapshots and in this case, I had to also include the config inside the Gruntfile.js file (essentially bypassing load-grunt-config completely for this particular task).
Example
Gruntfile.js
package.json (truncated)
aliases.yaml
I can verify that there is also a html-snapshots.js file in the grunt folder.
I haven't included the contents of this file because I don't believe it's relevant?
Thanks!