From 492a83589d672c3922a8bdf94813af7df096a5ea Mon Sep 17 00:00:00 2001 From: Matthew Strasiotto Date: Thu, 24 Sep 2020 10:26:59 +0000 Subject: [PATCH] Comment stack overflow link in webpack config --- frontend/tty-receiver/main.css | 48 +++++++++++++-------------- frontend/tty-receiver/tty-receiver.ts | 2 +- frontend/webpack.config.js | 2 ++ 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/frontend/tty-receiver/main.css b/frontend/tty-receiver/main.css index dd953e5..f9eb52f 100644 --- a/frontend/tty-receiver/main.css +++ b/frontend/tty-receiver/main.css @@ -1,5 +1,5 @@ @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: italic; font-weight: 800; src: url("assets/fonts/Sauce_Code_Pro_Black_Italic.ttf") format("truetype"); @@ -7,7 +7,7 @@ @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 800; src: url("assets/fonts/Sauce_Code_Pro_Black.ttf") format("truetype"); @@ -15,7 +15,7 @@ @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: italic; font-weight: 700; src: url("assets/fonts/Sauce_Code_Pro_Bold_Italic.ttf") format("truetype"); @@ -23,7 +23,7 @@ @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 700; src: url("assets/fonts/Sauce_Code_Pro_Bold.ttf") format("truetype"); @@ -31,7 +31,7 @@ @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: italic; font-weight: 250; src: url("assets/fonts/Sauce_Code_Pro_ExtraLight_Italic.ttf") format("truetype"); @@ -39,74 +39,74 @@ @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 250; - src: url("assets/fonts/Sauce_Code_Pro_ExtraLight.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_ExtraLight.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 400; - src: url("assets/fonts/Sauce_Code_Pro_Italic.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_Italic.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: italic; font-weight: 300; - src: url("assets/fonts/Sauce_Code_Pro_Light_Italic.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_Light_Italic.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 300; - src: url("assets/fonts/Sauce_Code_Pro_Light.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_Light.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: italic; font-weight: 400; - src: url("assets/fonts/Sauce_Code_Pro_Medium_Italic.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_Medium_Italic.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 400; - src: url("assets/fonts/Sauce_Code_Pro_Medium.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_Medium.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 400; - src: url("assets/fonts/Sauce_Code_Pro.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: italic; font-weight: 600; - src: url("assets/fonts/Sauce_Code_Pro_Semibold_Italic.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_Semibold_Italic.ttf") format("truetype") } @font-face { - font-family: Sauce_Code_Pro; + font-family: SauceCodePro; font-style: normal; font-weight: 600; - src: url("assets/fonts/Sauce_Code_Pro_Semibold.ttf") format("truetype"); + src: url("assets/fonts/Sauce_Code_Pro_Semibold.ttf") format("truetype") } html, body { @@ -124,5 +124,5 @@ html, body { xterm { - font-family: SourceCodePro; + font-family: SauceCodePro; } diff --git a/frontend/tty-receiver/tty-receiver.ts b/frontend/tty-receiver/tty-receiver.ts index 5fbb1a1..d1599dd 100644 --- a/frontend/tty-receiver/tty-receiver.ts +++ b/frontend/tty-receiver/tty-receiver.ts @@ -20,7 +20,7 @@ class TTYReceiver { scrollback: 0, fontSize: 12, letterSpacing: 0, - fontFamily: 'Sauce_Code_Pro' + fontFamily: 'SauceCodePro' }); this.containerElement = container; diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index f69f348..0039ce5 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -2,6 +2,8 @@ const webpack = require("webpack"); const copyWebpackPlugin = require('copy-webpack-plugin') const develBuild = process.env.TTY_SHARE_ENV === 'development'; +// https://stackoverflow.com/a/57676803/9238801 + let mainConfig = { entry: {