copy tldraw fonts to public/files

This commit is contained in:
Ramón Souza 2023-01-10 10:21:01 -03:00
parent 2b23778038
commit 52e06ce326
3 changed files with 7 additions and 1 deletions

View File

@ -4,5 +4,6 @@ node_modules/
.meteor/dev_bundle
public/locales/de_DE.json
public/locales/ja_JP.json
public/files

View File

@ -13,7 +13,8 @@
"test-visual-regression:recording": "export WITH_RECORD=true;export REGRESSION_TESTING=true;env $(cat ../bigbluebutton-tests/puppeteer/.env | xargs) jest all.test.js --color --detectOpenHandles --forceExit",
"lint": "eslint . --ext .jsx,.js",
"lint:file": "eslint",
"preinstall": "npx npm-force-resolutions"
"preinstall": "npx npm-force-resolutions",
"postinstall": "mkdir -p public/files; cp node_modules/@fontsource/*/files/*.woff public/files/; cp node_modules/@fontsource/*/files/*.woff2 public/files/"
},
"meteor": {
"mainModule": {

View File

@ -28,6 +28,10 @@ location /html5client/fonts {
alias /usr/share/meteor/bundle/programs/web.browser/app/fonts;
}
location /html5client/files {
alias /usr/share/meteor/bundle/programs/web.browser/app/files;
}
location /html5client/wasm {
types {
application/wasm wasm;