bline / bootstrap-webpack

development has moved to https://github.com/gowravshekar/bootstrap-webpack
MIT License
90 stars 54 forks source link

ERROR in ./~/bootstrap/fonts/glyphicons-halflings-regular.woff2 #18

Open CliveSHD opened 8 years ago

CliveSHD commented 8 years ago

There is an error when using this webpack-config file:

ERROR in ./~/bootstrap/fonts/glyphicons-halflings-regular.woff2 Module parse failed: /Users/Clive/Git/heroku/whatsgoinontonight/node_modules/bootstrap/fonts/glyphicons-halflings-regular.woff2 Line 1: Unexpected token ILLEGAL You may need an appropriate loader to handle this file type. (Source code omitted for this binary file) @ ./~/css-loader!./~/less-loader!./~/bootstrap-webpack/bootstrap-styles.loader.js!./~/bootstrap-webpack/bootstrap.config.js 6:56688-56749

At last I change line:

{ test: /.woff(\?v=\d+.\d+.\d+)?$/, loader: "url?limit=10000&minetype=application/font-woff" },

to

{ test: /.woff2?(\?v=\d+.\d+.\d+)?$/, loader: "url?limit=10000&minetype=application/font-woff" },

and it works!

sandergarretsen commented 8 years ago

Thanks! Think the readme should be updated?