In an Angular 4 project, when I reference
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.5/css/bootstrap.css">
in index.html, all is well. If I comment out the above, I no longer have styling. My paths look like this:
- node_modules
- e2e
- src
-- lib
-- main.ts
---- bootstrap
------ dist
-------- css
- .angular-cli.json
I do have this entry in .angular-cli.json:
"styles": [
"styles.css",
"./lib/bootstrap/dist/css/bootstrap.css"
],
Why doesn't the above work? boostrap.css is in the referenced folder. index.html is in the root of the src folder.
libis at the same level as the.angular-cli.jsonfile? What does your folder structure look like? Try"../lib/bootstrap/dist/css/bootstrap.css"cssfolder withindist? I don't see it in the structure