grunt-contrib-copy – ignore folder when copying
Try following Gruntfile.js. It ignores psd directory. Solution found in following question. module.exports = function(grunt) { // Project configuration. grunt.initConfig({ copy: { main: { src: [‘**/*’, ‘!**/psd/**’], expand: true, cwd: ‘dev’, dest: ‘pub’, } } }); // Load the plugin that provides the “copy” task. grunt.loadNpmTasks(‘grunt-contrib-copy’); // Default task(s). grunt.registerTask(‘default’, [‘copy’]); }; example setup. mkdir … Read more