yeoman / generator-webapp_DEPRECATED

Yeoman generator that scaffolds out a front-end web app
http://yeoman.io
974 stars 310 forks source link

App fonts folder location not according to gruntfile #594

Closed SerbanC closed 9 years ago

SerbanC commented 9 years ago

When generating the folder structure there is a fonts folder created directly under app. I placed my local fonts there but they weren't being copied dist, so I looked inside gruntfile.js and the paths are different:

// Renames files for browser caching purposes
    filerev: {
      dist: {
        src: [
          '<%= config.dist %>/scripts/{,*/}*.js',
          '<%= config.dist %>/styles/{,*/}*.css',
          '<%= config.dist %>/images/{,*/}*.*',
          '<%= config.dist %>/styles/fonts/{,*/}*.*',
          '<%= config.dist %>/*.{ico,png}'
        ]
      }
    },

and

    copy: {
      dist: {
        files: [{
          expand: true,
          dot: true,
          cwd: '<%= config.app %>',
          dest: '<%= config.dist %>',
          src: [
            '*.{ico,png,txt}',
            'images/{,*/}*.webp',
            '{,*/}*.html',
            'styles/fonts/{,*/}*.*'
          ]

Unless I'm missing something, the generator should create app/styles/fonts instead of app/fonts or gruntfile.js should be modified.