grunt-contrib-copy

grunt-contrib-copy - ignore folder when copying

和自甴很熟 提交于 2019-11-28 22:39:23
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 Atilla Ozgur Try following Gruntfile.js. It ignores psd directory. Solution found in following question . module.exports = function(grunt) { // Project configuration. grunt.initConfig({ copy: { main: { src: ['**

grunt-contrib-copy - ignore folder when copying

Deadly 提交于 2019-11-27 14:35:51
问题 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 回答1: Try following Gruntfile.js. It ignores psd directory. Solution found in following question. module