Given the following source tree:
dev
丨- psd
丨- psd.psd
丨- png.png
丨- css
丨- css.css
丨- image
丨- 1.jpg
丨- 2.png
丨html.html
How do I copy to the pub directory ignoring the psd folder as seen below?
pub
丨- css
丨- css.css
丨- image
丨- 1.jpg
丨- 2.png
丨html.html
I tried the following:
{
expand: true,
src: ['dev/**/*', '!dev/psd/**/*'],
dest: 'pub/'
}
But this results in an empty psd
directory
Try following Gruntfile.js. It ignores psd directory. Solution found in following question.
example setup.