Skip to content

Unable to use bootstrap.css #1701

Closed
Closed
@sravikiran

Description

@sravikiran
  1. OS?
    Windows 10
  2. Versions.
    angular-cli: 1.0.0-beta.11-webpack.2
    node: 6.3.1
    os: win32 x64
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    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:
npm install bootstrap --save

I imported the bootstrap.css file in the main.ts file as:

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

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?

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