Handle .ttf

This commit is contained in:
Alex Dima 2019-12-20 22:04:54 +01:00
parent 98a8d5a06a
commit eaacb00bb4
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
5 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View file

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

10
package-lock.json generated
View file

@ -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",

View file

@ -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",

View file

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

View file

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