This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Save Snapshots into Folder Structrue #6
Comments
+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 similar comment
+1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: