Last active
August 29, 2015 14:03
-
-
Save mittalabhas1/add7064b05266af275cf to your computer and use it in GitHub Desktop.
Adds supports to font awesome and app while building using grunt in yoeman
This file contains hidden or 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
// The copy of the Gruntfile.js should be like the following. This copies the fonts of the font-awesome and the app to the folder fonts in the dist directory. | |
copy: { | |
dist: { | |
files: [{ | |
expand: true, | |
dot: true, | |
cwd: '<%= yeoman.app %>', | |
dest: '<%= yeoman.dist %>', | |
src: [ | |
'*.{ico,png,txt}', | |
'.htaccess', | |
'*.html', | |
'views/{,*/}*.html', | |
'images/{,*/}*.{webp}', | |
] | |
}, { | |
expand: true, | |
cwd: '.tmp/images', | |
dest: '<%= yeoman.dist %>/images', | |
src: ['generated/*'] | |
}, { | |
expand: true, | |
dot: true, | |
cwd: '<%= yeoman.app %>', | |
src: ['fonts/*.*'], | |
dest: '<%= yeoman.dist %>', | |
}, { | |
expand: true, | |
dot: true, | |
cwd: 'bower_components/font-awesome', | |
src: ['fonts/*.*'], | |
dest: '<%= yeoman.dist %>' | |
}] | |
}, | |
styles: { | |
expand: true, | |
cwd: '<%= yeoman.app %>/styles', | |
dest: '.tmp/styles/', | |
src: '{,*/}*.css' | |
} | |
}, | |
// All the font imports used in the style sheets must be done with relative path '../fonts/FONT_FILE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment