Angular-cli: Copy font-awesome files to custom folder

Created on 10 Jun 2017  路  4Comments  路  Source: angular/angular-cli

- [ ] bug report -> please search issues before submitting
- [X] feature request

Versions.

@angular/cli: 1.1.0
node: 7.10.0
os: linux x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0
@angular/compiler-cli: 4.1.3
@angular/language-service: 4.1.3

Repro steps.

I added font-awesome to empty project by official sample in angular-cli > wiki

Desired functionality.

When I bg build --prod and visit this directory
fa

This is messy!!!

Question: Can I config angular-cli for copy fonts file in assets\fonts or other custom folder

Most helpful comment

May I ask why you even care about the output dir structure? This is something your deploy procedure should simply upload to a server somewhere that you're not really supposed to look at.

A year ago I would also be really bugged about this. But since I've stopped being a perfectionist and just accept stuff as is. Never felt better. ;)

All 4 comments

Try it, everything in assets should just be copied over in ng build

May I ask why you even care about the output dir structure? This is something your deploy procedure should simply upload to a server somewhere that you're not really supposed to look at.

A year ago I would also be really bugged about this. But since I've stopped being a perfectionist and just accept stuff as is. Never felt better. ;)

All of asset configuration options are documented here: https://github.com/angular/angular-cli/wiki/stories-asset-configuration but I agree with @grizzm0

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MateenKadwaikar picture MateenKadwaikar  路  3Comments

gotschmarcel picture gotschmarcel  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments

sysmat picture sysmat  路  3Comments