Created
January 6, 2015 10:11
-
-
Save cajones/6ac52eefe7027be16222 to your computer and use it in GitHub Desktop.
Fragment of Gruntfile.js - Adding an additional copy task for favicon.ico
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ... 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