Skip to content

Instantly share code, notes, and snippets.

@cajones
Created January 6, 2015 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cajones/6ac52eefe7027be16222 to your computer and use it in GitHub Desktop.
Save cajones/6ac52eefe7027be16222 to your computer and use it in GitHub Desktop.
Fragment of Gruntfile.js - Adding an additional copy task for favicon.ico
/* ... do setup here (omitted for brevity) ... */
grunt.initConfig({
/* ... add a configuration to the copy task ... */
copy: {
/* this config copies the index page from src, leave this alone! */
index: {
files: [
{
expand: true,
src: ['src/index.html'],
dest: '<%= outputdir %>build/',
filter: 'isFile',
flatten: true
},
]
},
/* add a new config will copy the fav icon */
favIcon: {
files: [
{
expand: true,
src: ['src/favicon.ico'],
dest: '<%= outputdir %>build/',
filter: 'isFile',
flatten: true
},
]
},
/* ... more configs go here (omitted for brevity) ... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment