mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 06:43:34 +01:00
Merge pull request 'fix: Do not scan all Go files for tailwind classes' (#5092) from fnetx/tailwind into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5092 Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
commit
eb25bc9edb
1 changed files with 6 additions and 3 deletions
|
@ -32,11 +32,14 @@ export default {
|
||||||
isProduction && '!./web_src/js/standalone/devtest.js',
|
isProduction && '!./web_src/js/standalone/devtest.js',
|
||||||
'!./templates/swagger/v1_json.tmpl',
|
'!./templates/swagger/v1_json.tmpl',
|
||||||
'!./templates/user/auth/oidc_wellknown.tmpl',
|
'!./templates/user/auth/oidc_wellknown.tmpl',
|
||||||
'!**/*_test.go',
|
|
||||||
'!./modules/{public,options,templates}/bindata.go',
|
|
||||||
'./{build,models,modules,routers,services}/**/*.go',
|
|
||||||
'./templates/**/*.tmpl',
|
'./templates/**/*.tmpl',
|
||||||
'./web_src/js/**/*.{js,vue}',
|
'./web_src/js/**/*.{js,vue}',
|
||||||
|
// explicitly list Go files that contain tailwind classes
|
||||||
|
'models/avatars/avatar.go',
|
||||||
|
'modules/markup/file_preview.go',
|
||||||
|
'modules/markup/sanitizer.go',
|
||||||
|
'services/auth/source/oauth2/*.go',
|
||||||
|
'routers/web/repo/{view,blame,issue_content_history}.go',
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
blocklist: [
|
blocklist: [
|
||||||
// classes that don't work without CSS variables from "@tailwind base" which we don't use
|
// classes that don't work without CSS variables from "@tailwind base" which we don't use
|
||||||
|
|
Loading…
Reference in a new issue