I am getting started with the Yeoman workflow, but I can\'t seem to completely understand the \"alternate search path\" for the usemin task in the index.html file. For example,
In yeoman js scripts are available in the app
folder, but when the user is using CoffeeScript
grunt task will convert .coffee
files to .js
files. Those generated .js
files will be available in .tmp
folder with the same folder structure.
In those condition ({.tmp,app})
is used to tell grunt-usemin to search both in app and .tmp folder, so that the build won't miss out generated js files.
scripts/scripts.js
is the destination file after the build.