From fcb6615efb091366e01b7b7f41d88d7a06ba09f3 Mon Sep 17 00:00:00 2001 From: Vladimir <13chears@gmail.com> Date: Fri, 27 Nov 2015 16:52:26 +0300 Subject: [PATCH] woff2 fix ERROR in ./~/bootstrap/fonts/glyphicons-halflings-regular.woff2 Module parse failed: /home/neo/progects/protos/client/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) @ ./~/bootstrap-webpack/~/css-loader!./~/bootstrap-webpack/~/less-loader!./~/bootstrap-webpack/bootstrap-styles.loader.js!./bootstrap.config.js 2:56882-56943 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4a36c36..072edd3 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ module.exports = { // Needed for the css-loader when [bootstrap-webpack](https://github.com/bline/bootstrap-webpack) // loads bootstrap's css. + { test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff2" }, { test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" }, { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" }, { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },