grunt-html-snapshot icon indicating copy to clipboard operation
grunt-html-snapshot copied to clipboard

Task produces an infinite loop/does not end

Open jonas-pietzsch opened this issue 8 years ago • 3 comments

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?

jonas-pietzsch avatar Jul 09 '16 09:07 jonas-pietzsch

Any updates on this? I'm having the same problem

pedrumgolriz avatar Sep 13 '16 01:09 pedrumgolriz

Same problem here. Any news about this?

toontjetoontje avatar Sep 23 '16 10:09 toontjetoontje

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...

richardnias avatar Oct 10 '16 16:10 richardnias