A
A
Alex Glebov2016-12-20 09:54:42
JavaScript
Alex Glebov, 2016-12-20 09:54:42

grunt. How to list all files in a folder and subfolders?

imagemin: {
            images: {
                files: [{
                    expand: true,
                    cwd: 'src/www/img',
                    src: ['*.{png,jpg,gif}'],
                    dest: 'src/www/img'
                }]
            },
        }

so it doesn't take subfolders into account

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2016-12-20
@SkiperX

in gulp it was like that. maybe src will work in grunt
: ['**/*.{png,jpg,gif}'],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question