【发布时间】:2015-03-06 22:47:24
【问题描述】:
我想复制build目录下的style.css来覆盖项目主目录下的style.css。
这是我的文件结构
project
├── assets
│ ├── styles
│ │ └── build
│ │ └── style.css
│ └── gruntfile.js
└── style.css
在我的 gruntfile.js 文件中,我有:
copy: {
dev: {
files: [{
cwd: 'styles/build/',
src: 'style.css',
dest: '../',
expand: true
}]
}
},
当我运行 grunt 时,我得到这个错误:
Running "copy:dev" (copy) task
Warning: EPERM, operation not permitted '../style.css' Use --force to continue.
Aborted due to warnings.
但它确实复制了文件。 我不知道为什么我会收到这个错误。
提前致谢。
【问题讨论】:
标签: gruntjs grunt-contrib-copy