2017-08-27 39 views
2

我只是用涼亭Materialise的包括在我的項目,但不幸的是,字體文件夾是保持從./bower_components/materialize/dist/失蹤。缺少的字體在涼亭文件夾物化

enter image description here

這是我bower.json

{ 
"name": "teahrm", 
"authors": [ 
    "Yusuf Ibrahim <[email protected]>" 
], 
"description": "teahrm web app", 
"main": "", 
"license": "MIT", 
"homepage": "", 
"private": true, 
"ignore": [ 
    "**/.*", 
    "node_modules", 
    "bower_components", 
    "test", 
    "tests" 
], 
"dependencies": { 
    "underscore": "^1.8.3", 
    "backbone": "^1.3.3", 
    "backbone.localStorage": "Backbone.localStorage#^2.0.0" 
} 

我檢查直接到github repository和使用我的本地環境的git克隆它,我意識到,字體/文件夾的Roboto是已經存在(〜/ test/materialize/dist)。

enter image description here

我的問題是:

  1. 有什麼錯我的涼亭,爲什麼它繼續忽略兌現/距離/字體文件夾下載?
  2. 如何解決它,或者我應該手動添加字體文件夾?
  3. 是否比其他更可靠的軟件包管理器比它更可靠?
+0

我切換到本地使用NPM在我的項目則Materialise的,CSS是現在結構正確(字體文件夾出現),只是想知道爲什麼人們在他們的項目上使用越野車,而不是npm? –

回答

0

後,我切換到我的項目則Materialise的,CSS是正確的,現在的結構在本地使用NPM(字體文件夾是出現)

不知道什麼是錯的亭子,但我知道我可以使用npm(或紗線)在我的項目文件夾中(我沒有更多理由在我的項目中使用bower)。

*剛換用bower.json的物質化版本「0.99.0」解決這個問題,以紗線更好的性能