Skip to content

Commit

Permalink
Added fonts to "main" files
Browse files Browse the repository at this point in the history
When using bower the "main" property is used to specify the files that should be consumed by applications including the package as a dependency.
Without including the fonts in this array the glyphicons do not work correctly as the relative font paths do not work after the "main" files are copied into my projects public dir using tools like https://github.com/yatskevich/grunt-bower-task

For now I have manually copied the fonts dir in the location needed for my project. But by accepting this pull request this will not be necessary for me or for other people that use bower.
  • Loading branch information
thomaswelton committed Aug 21, 2013
1 parent 924e9e7 commit 56f1ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bootstrap",
"version": "3.0.0",
"main": ["./dist/js/bootstrap.js", "./dist/css/bootstrap.css"],
"main": ["./dist/js/bootstrap.js", "./dist/css/bootstrap.css", "./dist/fonts/*"],
"ignore": [
"**/.*"
],
Expand Down

2 comments on commit 56f1ff6

@malte-wessel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got an error since this commit, when installing bootstrap via bower:
Error: ENOENT, no such file or directory 'bower_components/bootstrap/dist/fonts/*'

@juthilo
Copy link
Collaborator

@juthilo juthilo commented on 56f1ff6 Nov 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.