Răsfoiți Sursa

fixed fallback font embedding (powerline icons) - fixes #6071, fixes #3346, fixes #5189

Eugene Pankov 3 ani în urmă
părinte
comite
4dadba7f80
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      webpack.plugin.config.js

+ 5 - 1
webpack.plugin.config.js

@@ -87,9 +87,13 @@ module.exports = options => {
                 { test: /\.yaml$/, use: ['json-loader', 'yaml-loader'] },
                 { test: /\.svg/, use: ['svg-inline-loader'] },
                 {
-                    test: /\.(ttf|eot|otf|woff|woff2|ogg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
+                    test: /\.(eot|otf|woff|woff2|ogg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
                     type: 'asset',
                 },
+                {
+                    test: /\.ttf$/,
+                    type: 'asset/inline',
+                },
                 {
                     test: /\.po$/,
                     use: [