-
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
Unable to use bootstrap.css #1701
Comments
You might need to include the css file in the index.html file. |
@daftster Purpose of using webpack will become less significant if we do that. Webpack is supposed to load the file as a module and include it in the application bundle file when we build the application for production. |
Thanks for the info. Will start playing with webpack. I guess the solution I was suggesting is still with system.config.ts. |
@daftster Yes, in the systemjs version of angular-cli, we had to include the CSS file from the vendor folder in index.html. As I mentioned in the issue, webpack is including content of the CSS file in the bundle, but looks like the loader has some issue and I think it is not treated like a CSS file. |
Got the same problem. Using SASS by Only |
@SirHenry Yes, I had tried that too. Surprisingly it processes the SASS files and the converted contents are included in the bundle file in this case too. |
Could the problem be related to missing |
@filipesilva Thanks for linking the PRs here and for detailing the process of using libraries in the readme. Will look forward to the next version. |
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. |
Windows 10
angular-cli: 1.0.0-beta.11-webpack.2
node: 6.3.1
os: win32 x64
do on your code? etc.
The app is created using angular-cli after I upgraded to the 1.0.0-beta.11-webpack.2 version. After creating the project using
ng new
command, I installed bootstrap to the application using the following command:I imported the
bootstrap.css
file in themain.ts
file as:When I run the application, I see the file is included in the bundle and the file is loading in the
webpack
folder in the source tab of developer tools, but the styles are not working on the page. Am I missing anything? I don't think the font files are loaded to the browser. What should I do to load them?The text was updated successfully, but these errors were encountered: