npm install grunt-filelist> Making a filelist
~0.4.4If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
``shell`
npm install grunt-filelist --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-filelist');
to the data object passed into grunt.initConfig().`js
grunt.initConfig({
filelist: {
dist: {
options: {
basePath : 'test/imgs',
outputPath : './assets/imgs'
},
files: {
'./assets/js/filelist.js': ['test/imgs/*/']
}
}
},
});
`$3
#### options.basePath
Type:
String
Default value: 'img'Write an image directory name.
#### options.outputPath
Type:
String
Default value: './assets/img'`Write a path from a base html file.