grunt-html-snapshot
grunt-html-snapshot copied to clipboard
Task produces an infinite loop/does not end
Hello, I want to prerender an AngularJS 1 app served with a Spring Boot backend. But the task never finishes:
> grunt htmlSnapshot 11:28:05
Running "htmlSnapshot:prod" (htmlSnapshot) task
running html-snapshot task...hold your horses
I started with a basic example config:
htmlSnapshot: {
prod: {
options: {
snapshotPath: 'dist/snapshots/',
sitePath: 'http://localhost:9002/index2.html', // also tried 127.0.0.1
urls: [
''
]
}
}
},
The server is available through browsers. I don't know what's left to try because this is the most basic example I could imagine. Do you have an idea or would like to see more details?
Any updates on this? I'm having the same problem
Same problem here. Any news about this?
I believe I have solved this issue in my fork (https://github.com/nias-r/grunt-html-snapshot) - phantom.args has been removed. Changing this to system.args and updating grunt-lib-phantomjs works for me.
I've also opened a pull request, but I'm not sure how active the maintainer is...