誰かが私を助けて、私がここで間違っていることを教えてください。cssファイルをビルドディレクトリからプロジェクトのルートに移動したい次の面倒なタスクがあります。
module.exports = {
copy: {
main: {
files: [{
expand: true,
cwd: "build/css/",
src: "style.css",
dest: "../"
}]
},
},
}
私が実行するgrunt copy -v
と、これは次のようになります。
$ grunt copy -v
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Running tasks: copy
Running "copy" task
Running "copy:copy" (copy) task
Verifying property copy.copy exists in config...OK
File: [no files]
Options: encoding="utf8", processContent=false, processContentExclude=[], timestamp=false, mode=false
Done, without errors.