Answer the question
In order to leave comments, you need to log in
grunt. How to copy folders using the copy task?
I use this task: https://github.com/gruntjs/grunt-contrib-copy
I pulled bootstrap to myself and I want to copy these folders to myself:
/bower_components/bootstrap/dist
/bower_components/bootstrap/fonts
/bower_components/bootstrap/js
/bower_components/bootstrap/less
{expand: true, flatten: true, src: [
'bower_components/bootstrap/dist/*',
'bower_components/bootstrap/fonts/*',
'bower_components/bootstrap/js/*',
'bower_components/bootstrap/less/*'
], dest: 'src/vendor/bootstrap/', filter: 'isFile'},
src/vendor/bootstrap/bower_components/bootstrap/fonts
src/vendor/bootstrap/bower_components/bootstrap/js
src/vendor/bootstrap/bower_components/bootstrap/less
Answer the question
In order to leave comments, you need to log in
{
expand: true,
cwd: 'bower_components/bootstrap',
src: '**/*',
dest: 'src/vendor/bootstrap/',
filter: 'isFile'
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question