2013-08-17 16 views
8

grunt build'u çalıştırdıktan sonra dist/styles'un içinde fonts dizininde bırakıyorum. Neyi yanlış yapıyorum?Yeoman neden/styles/font içermiyor?

İşte Gruntfile.js yanı da bu:

compass: { 
     options: { 
      sassDir: '<%= yeoman.app %>/styles', 
      cssDir: '.tmp/styles', 
      imagesDir: '<%= yeoman.app %>/../images', 
      javascriptsDir: '<%= yeoman.app %>/scripts', 
      fontsDir: '<%= yeoman.app %>/../styles/fonts', 
      importPath: 'app/bower_components', 
      relativeAssets: true, 
     }, 
     dist: { 
      options: { 
       imagesDir: '<%= yeoman.dist %>/images', 
       fontsDir: '<%= yeoman.app %>/../styles/fonts' 
      } 
     }, 
     server: { 
      options: { 
       debugInfo: true 
      } 
     } 
    }, 
+0

proje düzeni emin değil, ama '' altında fontsDir' yerine 'yeoman.app' ait yeoman.dist'' olması dist' olmalıdır: Bu yerine genellikle aşağıdaki benzer copy göreve tarafından ele alınır ? – dc5

+0

Bunu denedim, hala yazı dizini yok. Dist.options aslında başlangıçta boş. Bu sadece ben vardım. – Birowsky

cevap

14

compass görev dist için app gelen yazı üzerine kopyalama sorumlu tutulamaz.

copy: { 
    dist: { 
    files: [{ 
     expand: true, 
     dot: true, 
     cwd: '<%= yeoman.app %>', 
     dest: '<%= yeoman.dist %>', 
     src: [ 
     '*.{ico,png,txt}', 
     '.htaccess', 
     'bower_components/**/*', 
     'images/{,*/}*.{gif,webp}', 
     'styles/fonts/*' // <-- Where fonts are copied. 
     ] 
    }, { 
     expand: true, 
     cwd: '.tmp/images', 
     dest: '<%= yeoman.dist %>/images', 
     src: [ 
     'generated/*' 
     ] 
    }] 
    } 
} 
+1

aaaaaaaand çalışır. Başlangıçta ayarlanmamış bir sebep var mı? – Birowsky

+0

Çoğu jeneratör bunu kutudan çıkarır. Hangisini kullandın? – passy

+0

Garibi, Omurga Üreteci. – Birowsky

İlgili konular