lpiepiora / bower-webpack-plugin

Bower Webpack Plugin
131 stars 23 forks source link

Example missing css #28

Open MatthewCarrington opened 9 years ago

MatthewCarrington commented 9 years ago

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 commented 8 years ago

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

dagumak commented 8 years ago

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