Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Example missing css #28

Open
MatthewCarrington opened this issue Oct 14, 2015 · 2 comments
Open

Example missing css #28

MatthewCarrington opened this issue Oct 14, 2015 · 2 comments

Comments

@MatthewCarrington
Copy link

The example needs to add the Bootstrap CSS to work correctly. Adding ...

require("./bower_components/bootstrap/dist/css/bootstrap.min.css");

... to entry.js seems to fix it.

Also the specified index.html has 'Bowerk Webpack Plugin' instead of 'Bower Webpack Plugin'

Hope that helps.

@lbragaglia
Copy link

This is due to changes in bower.json in recent versions of bootstrap (>= 3.3.5).
"main" file section no more declares all the files needed by this plugin, according to the new bower spec (see this note and bower/spec#43).
In addition to @MatthewCarrington solution you may either

  • install a working bootstrap version: bower install bootstrap#3.3.4
  • or use the less-loader:
    • npm install less-loader --save-dev
    • modify webpack config accordingly.

@dagumak
Copy link

dagumak commented Jul 18, 2016

For other user's using @lbragaglia's solution. If you decide to add the less loader than you need the less module as well: npm install less --save-dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants