Gruntjs Grunt生成-复制区EISDIR警告

Gruntjs Grunt生成-复制区EISDIR警告,gruntjs,grunt-build-control,Gruntjs,Grunt Build Control,我的Grunt构建任务中的copy:dist操作有问题 在src数组中的my copy:dist中,我已经包含了我的样式目录: 'style/{,/}*{png、css、gif、otf、eot、svg、ttf、woff}' 我的文件结构如下: …/样式 …/style/font/ …/styles/fontello/ …/styles/fontello/css …/styles/fontello/font …/样式/字体/字体太棒了 …/样式/字体/字形图标 运行grunt build时,出现以

我的Grunt构建任务中的copy:dist操作有问题

在src数组中的my copy:dist中,我已经包含了我的样式目录:

'style/{,/}*{png、css、gif、otf、eot、svg、ttf、woff}'

我的文件结构如下: …/样式 …/style/font/ …/styles/fontello/ …/styles/fontello/css …/styles/fontello/font …/样式/字体/字体太棒了 …/样式/字体/字形图标

运行grunt build时,出现以下错误: 警告:无法读取“dist/styles/fonts/font awesome”文件(错误代码:EISDIR)

但是-如果我将styles/fonts/重命名为styles/fonts1/一切正常

为什么我会遇到这个问题?因为文件夹名为“字体”。这是不允许的吗

想知道为什么会发生这种情况吗

试试:

styles/**/*.{png,css,gif,otf,eot,svg,ttf,woff}