loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: Do not scan all Go files for tailwind classes

Reduces some noise in the index.css file and adds a comment why it was done in the first place.

+6 -3
+6 -3
tailwind.config.js
··· 32 32 isProduction && '!./web_src/js/standalone/devtest.js', 33 33 '!./templates/swagger/v1_json.tmpl', 34 34 '!./templates/user/auth/oidc_wellknown.tmpl', 35 - '!**/*_test.go', 36 - '!./modules/{public,options,templates}/bindata.go', 37 - './{build,models,modules,routers,services}/**/*.go', 38 35 './templates/**/*.tmpl', 39 36 './web_src/js/**/*.{js,vue}', 37 + // explicitly list Go files that contain tailwind classes 38 + 'models/avatars/avatar.go', 39 + 'modules/markup/file_preview.go', 40 + 'modules/markup/sanitizer.go', 41 + 'services/auth/source/oauth2/*.go', 42 + 'routers/web/repo/{view,blame,issue_content_history}.go', 40 43 ].filter(Boolean), 41 44 blocklist: [ 42 45 // classes that don't work without CSS variables from "@tailwind base" which we don't use