2014-06-18 3 views
0

yo mobile 트위터 부트 스트랩 지원과 함께 애플리케이션을 구축했습니다. 그러나 /styles/vendor/fonts 폴더가 없으므로 glyphicons를 사용할 수 없습니다. (글리프 아이콘이 http://localhost:3333/styles/vendor/fonts/glyphiconshalflings-regular.woff이라고 크롬 네트워크 탭에서 볼 수 있기 때문에 glyphicons가 /styles/vendor/fonts 안에 있어야한다는 것을 알고 있습니다.)트위터 부트 스트랩이있는 Yeoman mobile : glyphicons가 누락되었습니다.

실제로 글리 핀 콘은 /bower_components/bootstrap/dist/fonts 폴더 안에 있습니다. 이 글꼴을 /styles/vendor/fonts에 복사하여 붙여 넣기 만하면됩니다. 하지만 여군은 내게 여분의 복사 붙여 넣기를하지 않아야한다고, 라이트?

그래서 질문은 : glyphicons가 /styles/vendor/fonts 폴더에 나타나도록 내 구성을 수정하는 방법이 있습니까?

compass: { 
     options: { 
      sassDir: '<%= yeoman.app %>/styles', 
      cssDir: '.tmp/styles', 
      generatedImagesDir: '.tmp/images/generated', 
      imagesDir: '<%= yeoman.app %>/images', 
      javascriptsDir: '<%= yeoman.app %>/scripts', 
      /*fontsDir: '<%= yeoman.app %>/styles/fonts',*/ 
      importPath: '<%= yeoman.app %>/bower_components', 
      httpImagesPath: '/images', 
      httpGeneratedImagesPath: '/images/generated', 
      httpFontsPath: '/styles/fonts', 
      relativeAssets: false 
     }, 
     dist: {}, 
     server: { 
      options: { 
       debugInfo: true 
      } 
     } 
    }, 

답변

2

당신은 복사 스타일 I,이에 대해 별도의 작업을 추가하는 것이 더 될 것이라고 생각

의 절차를 자동화 할 수 꿀꿀-있는 contrib 복사 작업을 추가 시도 할 수 있습니다 :

grunt.registerTask('install', ['copy']); 

을이에 작업을 간단히 bower_components/bootstrap 폴더에서/styles/vendor/fonts로 복사 할 수 있습니다.

+0

감사합니다. –