Javascript Grunt构建,使用Yeoman生成的GrunFile中断,错误代码为EISDIR
我正在尝试使用yeoman生成的Gruntfile.js文件运行默认的grunt构建任务 此文件适用于生成的应用程序,但一旦我将这些文件替换为当前应用程序中的文件,我就会收到一条警告,警告我将中断此过程 以下是跟踪:Javascript Grunt构建,使用Yeoman生成的GrunFile中断,错误代码为EISDIR,javascript,gruntjs,yeoman,yeoman-generator-angular,grunt-contrib-concat,Javascript,Gruntjs,Yeoman,Yeoman Generator Angular,Grunt Contrib Concat,我正在尝试使用yeoman生成的Gruntfile.js文件运行默认的grunt构建任务 此文件适用于生成的应用程序,但一旦我将这些文件替换为当前应用程序中的文件,我就会收到一条警告,警告我将中断此过程 以下是跟踪: Running "clean:dist" (clean) task >> 31 paths cleaned. Running "wiredep:app" (wiredep) task Running "wiredep:test" (wiredep) task Ru
Running "clean:dist" (clean) task
>> 31 paths cleaned.
Running "wiredep:app" (wiredep) task
Running "wiredep:test" (wiredep) task
Running "useminPrepare:html" (useminPrepare) task
Configuration changed for concat, uglify, cssmin
Running "concurrent:dist" (concurrent) task
Running "svgmin:dist" (svgmin) task
Total saved: 0 B
Done, without errors.
Execution Time (2015-04-13 14:28:10 UTC)
loading tasks 6ms ████ 8%
svgmin:dist 68ms ███████████████████████████████████████████ 91%
Total 75ms
Running "copy:styles" (copy) task
Copied 12 files
Done, without errors.
Execution Time (2015-04-13 14:28:10 UTC)
loading tasks 4ms ██ 3%
copy:styles 131ms ██████████████████████████████████████████████ 96%
Total 136ms
Running "imagemin:dist" (imagemin) task
Minified 315 images (saved 1.39 MB)
Done, without errors.
Execution Time (2015-04-13 14:28:10 UTC)
imagemin:dist 10.9s ███████████████████████████████████████████████ 100%
Total 10.9s
Running "autoprefixer:server" (autoprefixer) task
>> 12 autoprefixed stylesheets created.
Running "autoprefixer:dist" (autoprefixer) task
>> 12 autoprefixed stylesheets created.
Running "concat:generated" (concat) task
File .tmp\concat\scripts\vendor.js created.
File .tmp\concat\scripts\scripts.js created.
File .tmp\concat\filters created.
Warning: Unable to write ".tmp\concat\scripts\" file (Error code: EISDIR). Use --force to continue.
我不知道这是从哪里来的。
它似乎来自useminPrepare任务,然后调用concat,但我不确定:
useminPrepare: {
html: '<%= yeoman.app %>/index.html',
options: {
dest: '<%= yeoman.dist %>',
flow: {
html: {
steps: {
js: ['concat', 'uglifyjs'],
css: ['cssmin']
},
post: {}
}
}
}
}
谢谢你的帮助
[编辑]我的concat任务在默认生成的Gruntfile.js中被注释
// The following *-min tasks will produce minified files in the dist folder
// By default, your `index.html`'s <!-- Usemin block --> will take care of
// minification. These next options are pre-configured if you do not wish
// to use the Usemin blocks.
// cssmin: {
// dist: {
// files: {
// '<%= yeoman.dist %>/styles/main.css': [
// '.tmp/styles/{,*/}*.css'
// ]
// }
// }
// },
// uglify: {
// dist: {
// files: {
// '<%= yeoman.dist %>/scripts/scripts.js': [
// '<%= yeoman.dist %>/scripts/scripts.js'
// ]
// }
// }
// },
// concat: {
// dist: {}
// },
你能发布你的concat任务的配置块吗?这是你的use full`@vamsikrishnamanem,我有最新版本的grunt,我没有这个模式。你必须在某个地方有不同的concat配置,否则grunt无法识别它正在运行的concat:生成的任务。在您的GrunFile中生成的单词出现了多少次?在生成的单词的复制任务中,我只有一次出现