Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
作为gruntjs任务运行Phantomjs脚本_Phantomjs_Gruntjs - Fatal编程技术网

作为gruntjs任务运行Phantomjs脚本

作为gruntjs任务运行Phantomjs脚本,phantomjs,gruntjs,Phantomjs,Gruntjs,我有一个在phantomjs中运行的脚本,它在web浏览器中执行一些任务。我通常是这样运行的: phantomjs build.js 我如何将其作为任务集成到Gruntjs构建中 我目前使用的是grunt shell插件,但是我看不到phamtomjs的输出。如果你想看到记录的输出,你需要设置stdout选项 shell: { phantom: { command: 'phantomjs build.js', options: {

我有一个在phantomjs中运行的脚本,它在web浏览器中执行一些任务。我通常是这样运行的:

phantomjs build.js
我如何将其作为任务集成到Gruntjs构建中


我目前使用的是
grunt shell
插件,但是我看不到phamtomjs的输出。

如果你想看到记录的输出,你需要设置stdout选项

shell: {
    phantom: {
        command: 'phantomjs build.js',
        options: {
            stdout: true
        }
    }
}