Given that the Gruntfile is located in parent/aurora/Gruntfile.js,
I'd like to configure Grunt to do the following when the build command is executed:
If you don't want to copy files or a directory you can just preface the files you don't want to include with !
. For example, if you don't want to copy a directory just use: !/parent/aurora/node_modules/**
.
In your grunt task:
files: [
{
src: ['your_files', '!/parent/aurora/node_modules/**'],
dest: 'output/folder'
}
]
Hope this helps!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.