-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
There is an error when using this webpack-config file:
ERROR in .//bootstrap/fonts/glyphicons-halflings-regular.woff2/css-loader!./
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)
@ .//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!
Metadata
Metadata
Assignees
Labels
No labels