include woff, woff2 and ttf fonts only for katex/math fonts
@@ -31,20 +31,11 @@ module.exports = (env = {}) => {
use: [MiniCssExtractPlugin.loader, 'css-loader']
},
{
-
- test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
- use: [
-
- {
- loader: 'file-loader',
- options: {
- name: '[name].[ext]',
- outputPath: 'fonts/'
- }
- }
-
- ],
-
+ test: /\.(woff(2)?|ttf)$/,
+ use: {
+ loader:"file-loader",
+ options: { name: "fonts/[name].[ext]" }
+ },
}
]
},
