terence55 / themes-switch

Toolset for switch multiple themes in application based on webpack
54 stars 18 forks source link

Styles are not dynamically loaded #31

Open leonard84 opened 1 year ago

leonard84 commented 1 year ago

I wanted to add an optional dark-mode to https://gwc-experiment.appspot.com/ unfortunately I couldn't get it to work completely.

  1. Problem if fails to pack when clearTemp: false is not set
  2. Problem all themes are added to the header loading them unnecessarily
  3. Problem Theme switching does not seem work.
  4. Problem there are no Typescript type defs for the offered functions.

To reproduce checkout https://github.com/groovy-console/groovy-web-console/tree/theming go to ./frontend and run npm run serve-remote to see the generated app in action.