Alex Dima 5 vuotta sitten
vanhempi
commit
eaacb00bb4
5 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  1. 1 0
      .gitignore
  2. 10 0
      package-lock.json
  3. 1 0
      package.json
  4. 3 0
      test/webpack-cross-origin.config.js
  5. 3 0
      test/webpack.config.js

+ 1 - 0
.gitignore

@@ -1,4 +1,5 @@
 /node_modules/
 /test/node_modules/
 /test/dist/*.js
+/test/dist/*.ttf
 /out/

+ 10 - 0
package-lock.json

@@ -1388,6 +1388,16 @@
       "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==",
       "dev": true
     },
+    "file-loader": {
+      "version": "5.0.2",
+      "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-5.0.2.tgz",
+      "integrity": "sha512-QMiQ+WBkGLejKe81HU8SZ9PovsU/5uaLo0JdTCEXOYv7i7jfAjHZi1tcwp9tSASJPOmmHZtbdCervFmXMH/Dcg==",
+      "dev": true,
+      "requires": {
+        "loader-utils": "^1.2.3",
+        "schema-utils": "^2.5.0"
+      }
+    },
     "file-uri-to-path": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",

+ 1 - 0
package.json

@@ -34,6 +34,7 @@
     "@types/loader-utils": "^1.1.3",
     "@types/webpack": "^4.41.0",
     "css-loader": "^3.4.0",
+    "file-loader": "^5.0.2",
     "glob": "^7.1.6",
     "monaco-editor": "^0.19.0",
     "style-loader": "^1.1.1",

+ 3 - 0
test/webpack-cross-origin.config.js

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

+ 3 - 0
test/webpack.config.js

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