Skip to content

Webpack branch: how should I be loading fonts (from Bootstrap, etc.) #1436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sunild opened this issue Jul 23, 2016 · 2 comments
Closed

Webpack branch: how should I be loading fonts (from Bootstrap, etc.) #1436

sunild opened this issue Jul 23, 2016 · 2 comments

Comments

@sunild
Copy link

sunild commented Jul 23, 2016

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

OS X 10.11.5

  1. Versions. Please run ng --version. If there's nothing outputted, please
    run in a Terminal:
    node --version
    And paste the result here.

I'm running the latest commit from the webpack branch of the cli (b8f502e):
angular-cli: local (v1.0.0-beta.10, branch: webpack)
node: 4.3.0
os: darwin x64

  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.

Added Bootstrap 3 via npm

  1. The log given by the failure. Normally this include a stack trace and some
    more information.

404 errors in browser for the following Bootstrap glyphicon fonts:
http://localhost:4200/fonts/glyphicons-halflings-regular.woff2
http://localhost:4200/fonts/glyphicons-halflings-regular.woff
http://localhost:4200/fonts/glyphicons-halflings-regular.ttf

  1. Mention any other details that might be useful.

I know the webpack branch is still in development... I converted a real project from the SystemJS version of the CLI to the Webpack version, and it's working great so far. Happy to share my upgrade notes if it helps (all from memory, so your mileage may vary).

I'm just wondering if I did something wrong config wise (regarding fonts), or if perhaps if the CLI should have a loader config for fonts files. Or maybe a way to add a custom loader configuration?


Thanks! We'll be in touch soon.

@filipesilva
Copy link
Contributor

Hi @sunild, the webpack branch isn't the official one yet so we don't really want people to be opening issues against it, which is why I am closing this one.

I'll ask you to comment on #1356 instead.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants