Skip to content

Instantly share code, notes, and snippets.

@Remigr
Last active August 29, 2015 14:02
Show Gist options
  • Save Remigr/057ff27f4665c212beb5 to your computer and use it in GitHub Desktop.
Save Remigr/057ff27f4665c212beb5 to your computer and use it in GitHub Desktop.
html snapshot example
htmlSnapshot: {
all: {
options: {
snapshotPath: 'snapshots/',
sitePath: 'http://<your-website>/',
fileNamePrefix: '',
sanitize: function(requestUri) {
return requestUri.replace(/\//g, '/').replace(/#!\//g, '');
},
urls: [
'#!/index',
'#!/home',
... all the pages of your website ...
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment