Skip to content

Commit c30161f

Browse files
author
jaimeagudo
committed
Fix mimetype typo and fix build bug (add support to .woff2 fonts)
1 parent f48c272 commit c30161f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

webpack.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ module.exports = {
2424

2525
// Needed for the css-loader when [bootstrap-webpack](https://github.com/bline/bootstrap-webpack)
2626
// loads bootstrap's css.
27-
{ test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&minetype=application/font-woff" },
28-
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&minetype=application/octet-stream" },
29-
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
30-
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&minetype=image/svg+xml" }
27+
{ test: /\.woff2?(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff" },
28+
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
29+
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
30+
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" }
3131
]
3232
}
3333
};
34-

0 commit comments

Comments
 (0)