grunt-html-snapshot
grunt-html-snapshot copied to clipboard
Save Snapshots into Folder Structrue
It would be nice to be able to save the snapshots into a folder structure instead of a flat list. A nested folder structure makes it easier to write a url rewrite rule.
Example: Hash-Bang-Url: #!/company/management Flat snapshot file: snapshot___company_management.html Nested folder snapshot file: snapshot/company/managment.html
At the moment you're able to configure 'snapshotPath' and 'fileNamePrefix'. But within 'snapshotPath' folder all snapshot files a saved with _ as replacement for slashes in the hash bang url. One more option to configure the grunt task not to replace the slashes of the hash bang url should be enough to get it working with folder structures. Then, together with 'snapshotPath' and 'fileNamePrefix' you're able to get a structure shown in the example.
+1 would you like to create a PR?
Hopefully I find time to code it this weekend ...
Great! Looking forward to it!
+1
+1
+1