mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-21 08:31:27 -05:00
Apply tailwindcss rules with !important
(#29437)
As per discussion in https://github.com/go-gitea/gitea/pull/29423, I think this is the right way that does not burden developers having to think about CSS precedence which should be irrelevant with an atomic CSS framework. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit e55926ebfe88d6ee079842967dc7dccc2a9cdbf2)
This commit is contained in:
parent
8f3ef5aa71
commit
75f7be2aac
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ const isProduction = env.NODE_ENV !== 'development';
|
|||
|
||||
export default {
|
||||
prefix: 'tw-',
|
||||
important: true, // the frameworks are mixed together, so tailwind needs to override other framework's styles
|
||||
content: [
|
||||
isProduction && '!./templates/devtest/**/*',
|
||||
isProduction && '!./web_src/js/standalone/devtest.js',
|
||||
|
|
Loading…
Reference in a new issue