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