Vote count:
0
What is the Gulp equivalent to dynamic mappings in Grunt, where the file/folder structure in the destination directory matches the source directory?
Here's an example from the Grunt docs section on "Building the files object dynamically":
dynamic_mappings: {
// Grunt will search for "**/*.js" under "lib/" when the "uglify" task
// runs and build the appropriate src-dest file mappings then, so you
// don't need to update the Gruntfile when files are added or removed.
files: [
{
expand: true, // Enable dynamic expansion.
cwd: 'lib/', // Src matches are relative to this path.
src: ['**/*.js'], // Actual pattern(s) to match.
dest: 'build/', // Destination path prefix.
ext: '.min.js', // Dest filepaths will have this extension.
extDot: 'first' // Extensions in filenames begin after the first dot
},
],
},
asked 1 min ago
Gulp Equivalent of Grunt Dynamic Mappings
Aucun commentaire:
Enregistrer un commentaire