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
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!