2017-08-27 60 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”解决这个问题,以纱线更好的性能