我想复制 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.
但它确实复制了文件。我不知道为什么我会收到这个错误。
提前致谢。