0

我正在尝试使用 grunt 插件 dump_dir 为 pdfmake 生成 vfs_font.js 文件。

我安装了grunt ~0.4.2,配置了Gruntfile.js,安装了grunt_dump_dir插件并检查了package.json文件。

然而,每次我尝试启动 grunt dump-dir 时,都会收到以下错误:

Warning: Task "dump-dir" not found. Use --force to continue. Aborted due to warnings.

有任何想法吗?

4

1 回答 1

0

在您的 Gruntfile 中,在您传递给 grunt.initConfig 的 json 中,应该有一个名为“dump_dir”的任务。例如,以下 Gruntfile 中的任务“hello”可以作为 grunt hello 运行,

grunt.initConfig({
   "hello":{},
}); 
于 2016-06-25T08:44:06.807 回答