Ubuntu 12.04に最新のGruntをインストールしました。ここに私のうなり声があります:
module.exports = function(grunt){
//project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
slides : {
src : ['src/top.html', 'src/bottom.html'],
dest : ['build/index.html']
}
}
});
//enable plugins
grunt.loadNpmTasks('grunt-contrib');
grunt.registerTask('default', ['concat:slides']);
}
これにより build/ ディレクトリが正常に作成されますが、次の出力が得られます。
"concat:slides" (concat) タスクの実行中 警告: "build/index.html" ファイルを書き込めません (エラー コード: 未定義)。--force を使用して続行します。
権限に関係があるのではないかと思ったので、ディレクトリで chmod 777 を実行してみましたが、何も変わらないようでした。
Grunt が build/index.html に書き込むようにするにはどうすればよいですか?