Переглянути джерело

Update example to correctly package .ttf (microsoft/monaco-editor-webpack-plugin#90)

Alexandru Dima 5 роки тому
батько
коміт
dc47a2706e
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      docs/integrate-esm.md

+ 6 - 0
docs/integrate-esm.md

@@ -46,6 +46,9 @@ module.exports = {
     rules: [{
       test: /\.css$/,
       use: ['style-loader', 'css-loader']
+    }, {
+      test: /\.ttf$/,
+      use: ['file-loader']
     }]
   },
   plugins: [
@@ -118,6 +121,9 @@ module.exports = {
     rules: [{
       test: /\.css$/,
       use: ['style-loader', 'css-loader']
+    }, {
+      test: /\.ttf$/,
+      use: ['file-loader']
     }]
   }
 };