Install this plugin with the command:
npm install grunt-wieldyjs
Next, add this line to your project's grunt file:
Lastly, add the configuration settings (see below) to your grunt file.
This task has two required properties,
dest, and one optional property,
srcshould be a glob matching all files.
destshould be a directory in which to reproduce the directory tree of files matching the
destwill be evaluated relative to the grunt.js file.
srcwill overwrite files in the
optionsshould be an object with key-value pairs.
basePath, which should be the prefix to remove from the path of files matching
An example configuration looks like this: