I want to copy style.css in the build directory to overwrite the style.css in the main project directory.
This is my file structure
project
├── assets
│ ├── styles
│ │ └── build
│ │ └── style.css
│ └── gruntfile.js
└── style.css
In my gruntfile.js file I have:
copy: {
dev: {
files: [{
cwd: 'styles/build/',
src: 'style.css',
dest: '../',
expand: true
}]
}
},
When I run grunt, I get this error:
Running "copy:dev" (copy) task
Warning: EPERM, operation not permitted '../style.css' Use --force to continue.
Aborted due to warnings.
But it does copy the file. I can't figure out why I am getting this error.
Thanks in advance.