现在我有了多个gulpfiles。每次我开始工作时,我需要运行多个“gulp --gulpfile path/to/another-gulpfile.js”。我可以用一个命令运行它吗?我尝试了“gulp --gulpfile gulpfile1.js gulpfile2.js gulpfile3.js”,但它没有奏效。分解任务
编辑:
"scripts": {
"gulp": "gulp --gulpfile bin/gulp-tasks/config.js && gulp --gulpfile bin/gulp-tasks/deploy.js"
}
我尝试使用NPM脚本运行多个实例,一饮而尽,但它看起来像从第一指定gulpfile仅观察家都在工作。简单的console.logging显示,第二个gulpfile甚至没有启动。它们在单独启动时可以很好地工作。
为什么要使用多个gulpfiles的其他方式? – Dai