-
Notifications
You must be signed in to change notification settings - Fork 12k
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
a way to ignore glyphicons with ng build #6147
Comments
glyphicons is referenced in bootstrap.css. This is just webpack/AngularCLI doing it's thing including all files needed for your CSS. It doesn't really hurt that it's there other than OCD, does it? :p If you really want to remove it you could build from less/sass instead. Copy bootstrap.less/sass into your project and change all the imports to point to the correct files then remove |
As @grizzm0 said, boostrap references glyphicons so they are included. This is intended behaviour. |
Can we not still have a way to provide some excludes while building (example: |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)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'sapps.styles
ng build
cd dist
ls -la | awk {'print $9'}
cd ../
npm uninstall -s bootstrap
Remove
,"../node_modules/bootstrap/dist/css/bootstrap.css"
from .angular-cli.json'sapps.styles
ng build
cd dist
ls -la | awk {'print $9'}
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.
The text was updated successfully, but these errors were encountered: