Skip to content

Commit

Permalink
Fix theme-auto loading
Browse files Browse the repository at this point in the history
Fix regression from go-gitea#23481.

The conditional CSS import was being stripped away by webpack's
`css-loader`, resulting in the dark theme always loading. Unfortunately,
we have to re-introduce postcss to the CSS pipeline to fix this and I
loaded only the minimal plugins to make it work.

Related: webpack-contrib/css-loader#1503
  • Loading branch information
silverwind committed Mar 15, 2023
1 parent 6f9cc61 commit a95178e
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 54 deletions.
Loading

0 comments on commit a95178e

Please sign in to comment.