0

I have a script that I run in phantomjs that performs some tasks in a web browser. I normally run it like so:

phantomjs build.js

How would I integrate this as a Task in a Gruntjs build?

i'm currently using the grunt-shell plugin however I cannot see the output from phamtomjs.

4

1 回答 1

1

You need to set the stdout option if you want to see the output logged.

shell: {
    phantom: {
        command: 'phantomjs build.js',
        options: {
            stdout: true
        }
    }
}
于 2013-10-10T10:49:56.163 回答