Skip to content

a way to ignore glyphicons with ng build #6147

@anandchakru

Description

@anandchakru

Bug Report or Feature Request (mark with an x)

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

Versions.

@angular/cli: 1.0.0-rc.4
node: 7.4.0
os: linux x64

Repro steps.

Follow the steps/command below:

ng new Eg1

cd Eg1

npm install -s bootstrap

Add ,"../node_modules/bootstrap/dist/css/bootstrap.css" into .angular-cli.json's apps.styles

ng build

cd dist

ls -la | awk {'print $9'}

..
favicon.ico
glyphicons-halflings-regular.448c34a56d699c29117a.woff2
glyphicons-halflings-regular.89889688147bd7575d63.svg
glyphicons-halflings-regular.e18bbf611f2a2e43afc0.ttf
glyphicons-halflings-regular.f4769f9bdb7466be6508.eot
glyphicons-halflings-regular.fa2772327f55d8198301.woff
index.html

cd ../

npm uninstall -s bootstrap

Remove ,"../node_modules/bootstrap/dist/css/bootstrap.css" from .angular-cli.json's apps.styles

ng build

cd dist

ls -la | awk {'print $9'}

..
favicon.ico
index.html

The log given by the failure.

Observe that there are glyphicons*.* files when bootstrap is included, how to ignore glyphicons with ng build ?

Desired functionality.

A way to ignore glyphicons while using ng-build

Mention any other details that might be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions