Skip to content

Commit

Permalink
Include go files in tailwind processing (#29686)
Browse files Browse the repository at this point in the history
We need to scan `.go` files for tailwind classes. Does not seem to
affect build time much luckily.

Fixes:
#29678 (comment)

Verified via `rg tw-object-contain public/assets/css/index.css`.

---------

Co-authored-by: Giteabot <[email protected]>
  • Loading branch information
silverwind and GiteaBot authored Mar 9, 2024
1 parent 1dc7f53 commit 1695a5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export default {
isProduction && '!./web_src/js/standalone/devtest.js',
'!./templates/swagger/v1_json.tmpl',
'!./templates/user/auth/oidc_wellknown.tmpl',
'!**/*_test.go',
'!./modules/{public,options,templates}/bindata.go',
'./{build,models,modules,routers,services}/**/*.go',
'./templates/**/*.tmpl',
'./web_src/js/**/*.{js,vue}',
].filter(Boolean),
Expand Down

0 comments on commit 1695a5a

Please sign in to comment.