Я использую Fontello для создания собственного шрифта .eot для моего приложения.
После генерации я пытаюсь загрузить его, используя конфигурацию моего веб-пакета, добавив следующий загрузчик:
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/',
},
},
],
},
К сожалению, возникает следующая ошибка:
webpack:///./src/fontello/font/fontello.eot?:1
throw new Error("Module parse failed: Unexpected character '�' (1:1)\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n(Source code omitted for this binary file)");
^
Error: Module parse failed: Unexpected character '�' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
Я что-то пропустил? Нужно ли что-нибудь добавить в параметры веб-пакета?