Browse Source

Merge pull request #18665 from psrpinto/fix/theme-hot-reload

Fix isues with CSS hot-reload
pull/18738/head
Travis Ralston 9 months ago committed by GitHub
parent
commit
24a076a202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .env.example
  2. 2
      webpack.config.js

4
.env.example

@ -3,8 +3,8 @@ CSS_HOT_RELOAD=1
# To use a single theme, uncomment the line with the theme you want to hot-reload.
MATRIX_THEMES='light'
#MATRIX_THEMES='dark'
#MATRIX_THEMES='light-legacy'
#MATRIX_THEMES='dark-legacy'
#MATRIX_THEMES='legacy-light'
#MATRIX_THEMES='legacy-dark'
#MATRIX_THEMES='light-custom'
#MATRIX_THEMES='dark-custom'
# You can also enable multiple themes by using a comma-separated list.

2
webpack.config.js

@ -16,7 +16,7 @@ if (!ogImageUrl) ogImageUrl = 'https://app.element.io/themes/element/img/logos/o
const cssThemes = {
// CSS themes
"theme-legacy": "./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss",
"theme-legacy-light": "./node_modules/matrix-react-sdk/res/themes/legacy-light/css/legacy-light.scss",
"theme-legacy-dark": "./node_modules/matrix-react-sdk/res/themes/legacy-dark/css/legacy-dark.scss",
"theme-light": "./node_modules/matrix-react-sdk/res/themes/light/css/light.scss",
"theme-dark": "./node_modules/matrix-react-sdk/res/themes/dark/css/dark.scss",

Loading…
Cancel
Save