Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@partageit
Last active August 29, 2015 14:08
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 partageit/6530842941b23ab98bb3 to your computer and use it in GitHub Desktop.
Save partageit/6530842941b23ab98bb3 to your computer and use it in GitHub Desktop.
Partage-it.com : inclure les fichiers font (de Font Awesome par exemple) avec grunt build (avec yo angular par exemple)
[...]
// The following *-min tasks produce minified files in the dist folder
cssmin: {
options: {
root: '' // customisation to add font files from CSS libraries
}
},
[...]
copy: {
[...]
styles: {
[...]
},
// customisation to add font files from CSS libraries:
fonts: {
expand: true,
flatten: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>/fonts',
src: ['bower_components/components-font-awesome/fonts/*']
}
},
[...]
grunt.registerTask('build', [
[...]
'ngmin',
'copy:fonts', // customisation to add font files from CSS libraries
[...]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment