Skip to content

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

@CliveSHD

Description

@CliveSHD

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions