Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.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
Javascript Grunt concat生成的文件中没有任何内容_Javascript_Angularjs_Gruntjs_Karma Jasmine_Grunt Contrib Concat - Fatal编程技术网

Javascript Grunt concat生成的文件中没有任何内容

Javascript Grunt concat生成的文件中没有任何内容,javascript,angularjs,gruntjs,karma-jasmine,grunt-contrib-concat,Javascript,Angularjs,Gruntjs,Karma Jasmine,Grunt Contrib Concat,我正在使用grunt连接两个文件。Grunt运行成功,甚至创建了一个文件,但是当我打开文件时,我看不到其中的任何内容。文件完全是空的。我的“GruntFile.js”的内容如下: grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: "\n\n" }, dist: {

我正在使用grunt连接两个文件。Grunt运行成功,甚至创建了一个文件,但是当我打开文件时,我看不到其中的任何内容。文件完全是空的。我的“GruntFile.js”的内容如下:

grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    concat: {
        options: {
            separator: "\n\n"
        },
        dist: {
            src: [
                'overview/js/File1.js',
                'overview/js/File2.js'

            ],
            dest: 'overview/js/build/production.js'
        }
    }
});

// 3. Where we tell Grunt we plan to use this plug-in.
grunt.loadNpmTasks('grunt-contrib-concat');


grunt.registerTask('default', ['concat']);

在这方面的任何帮助都将不胜感激

你能发布你的项目树吗?WebContent/overview/js->包含所有的js文件,你把Grunfile放在哪里了?