Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.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 Grunt |编译子文件夹+;包括哈巴狗档案_Gruntjs_Pug Loader - Fatal编程技术网

Gruntjs Grunt |编译子文件夹+;包括哈巴狗档案

Gruntjs Grunt |编译子文件夹+;包括哈巴狗档案,gruntjs,pug-loader,Gruntjs,Pug Loader,在当前情况下,grunt确实监视子文件夹中的文件,但没有编译到dist。 请参阅我的Grunfile的(部分): grunt.initConfig({ pkg:grunt.file.readJSON('./package.json'), 配置:{ 地区:'./地区', src:'./src',, htmlPath:' }, 观察:{ 选项:{ 产卵:假 }, 帕格:{ 文件:'/***.pug', 任务:['pug:dist'] } }, 帕格:{ 地区:{ 选项:{ 真的, 数据:{ 调试:

在当前情况下,grunt确实监视子文件夹中的文件,但没有编译到dist。 请参阅我的Grunfile的(部分):


grunt.initConfig({
pkg:grunt.file.readJSON('./package.json'),
配置:{
地区:'./地区',
src:'./src',,
htmlPath:'
},
观察:{
选项:{
产卵:假
},
帕格:{
文件:'/***.pug',
任务:['pug:dist']
}
},
帕格:{
地区:{
选项:{
真的,
数据:{
调试:false
}
},
档案:[{
是的,
cwd:“”,
src:['*.pug'],
目标:'',
分机:'.html',
}]
}
},
});
我猜测这可能是因为包含文件夹等(应该出现在dist文件夹中)。如何修改我的设置,使grunt在其中编译一些特定的子文件夹和文件