★ wanayoo — archive 1999 https://github.com/preboot/angular-webpack/issues/14Nouvelle recherche | Portail wanayoo
Skip to content
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

How to use bootstrap.css in entire app with webpack? #14

Closed
ibufu opened this issue Jan 16, 2016 · 5 comments
Closed

How to use bootstrap.css in entire app with webpack? #14

ibufu opened this issue Jan 16, 2016 · 5 comments
Labels

Comments

@ibufu
Copy link

@ibufu ibufu commented Jan 16, 2016

No description provided.

@ocombe
Copy link
Collaborator

@ocombe ocombe commented Jan 16, 2016

This has been answered here: #12
Let me know if this doesn't solve your problem.

@ocombe
Copy link
Collaborator

@ocombe ocombe commented Jan 16, 2016

Also, I just pushed a fix that should help and updated the readme accordingly

@ibufu
Copy link
Author

@ibufu ibufu commented Jan 16, 2016

sorry, I add import '../node_modules/bootstrap/dist/css/bootstrap.css'; to vendor.ts
but it does not work.
I have to add to index.html.

@ibufu
Copy link
Author

@ibufu ibufu commented Jan 16, 2016

I can find bootstrap.css at webpack://~/bootstrap/dist/css. But how to use it to my components?

@ocombe
Copy link
Collaborator

@ocombe ocombe commented Jan 16, 2016

To import it from vendor.ts you have to make this change to the webpack config file: f73e6e5#diff-11e9f7f953edc64ba14b0cc350ae7b9dR114

Then just do:

import 'bootstrap/dist/css/bootstrap.css';

It will import it for the whole project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.