generator-ionic icon indicating copy to clipboard operation
generator-ionic copied to clipboard

Fonts not included when using :compress

Open ryanseamons opened this issue 9 years ago • 1 comments

Line 277 of grunt.js needs to be changed from

cwd: 'app/lib/ionic/release/fonts/',

to

cwd: 'app/bower_components/ionic/release/fonts/',

So that fonts are appropriately moved when compressing.

ryanseamons avatar Feb 28 '15 23:02 ryanseamons

That worked for ionic, I use font-awesome (http://fortawesome.github.io/Font-Awesome/).

To support any bower package with fonts I used

      fonts: {
        expand: true,
        flatten: true,
        cwd: '<%= yeoman.app %>/',
        dest: '<%= yeoman.app %>/fonts/',
        src: ['**/fonts/*']
      },

You can also skip writing to the yeoman.app/fonts/ and write to yeoman.dist/fonts

richardfriedman avatar Mar 08 '15 04:03 richardfriedman