运行 gulp 任意 gulp 文件名(不是 gulpfile.js)
Run gulp with an arbitrary gulpfile name (not gulpfile.js)
我的 gulpfile 中有一个与其他任务隔离的特定任务,并且不需要 运行 作为其余构建过程的一部分。我想把它放在一个单独的 gulpfile 中并自行执行。
如何将 gulp
与具有自定义名称的 gulpfile 一起使用?
冒充 Gulp 的 Getting started document 文档似乎没有提到 CLI。我尝试搜索 gulp
的参数,主要是关于如何将命令行参数输入 gulp
任务的结果。
实际用例是在 Docker 容器中提取可翻译字符串,我不想让不必要的 node.js 包膨胀。
gulp CLI docs 是这样说的:
--gulpfile <gulpfile path>
will manually set path of gulpfile. Useful if you have multiple gulpfiles. This will set the CWD to the gulpfile directory as well
我的 gulpfile 中有一个与其他任务隔离的特定任务,并且不需要 运行 作为其余构建过程的一部分。我想把它放在一个单独的 gulpfile 中并自行执行。
如何将 gulp
与具有自定义名称的 gulpfile 一起使用?
冒充 Gulp 的 Getting started document 文档似乎没有提到 CLI。我尝试搜索 gulp
的参数,主要是关于如何将命令行参数输入 gulp
任务的结果。
实际用例是在 Docker 容器中提取可翻译字符串,我不想让不必要的 node.js 包膨胀。
gulp CLI docs 是这样说的:
--gulpfile <gulpfile path>
will manually set path of gulpfile. Useful if you have multiple gulpfiles. This will set the CWD to the gulpfile directory as well