mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-25 09:07:26 +08:00
Adjust tailwind content globs (#29596)
Tailwind content is not going to appear in `web_src/css`, `web_src/fomantic` or `web_src/svg` or the JSON templates, so we don't need to have tailwind scan these directories which will speed up the build. --------- Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
parent
ade6241691
commit
72b213b00f
|
@ -29,8 +29,10 @@ export default {
|
||||||
content: [
|
content: [
|
||||||
isProduction && '!./templates/devtest/**/*',
|
isProduction && '!./templates/devtest/**/*',
|
||||||
isProduction && '!./web_src/js/standalone/devtest.js',
|
isProduction && '!./web_src/js/standalone/devtest.js',
|
||||||
|
'!./templates/swagger/v1_json.tmpl',
|
||||||
|
'!./templates/user/auth/oidc_wellknown.tmpl',
|
||||||
'./templates/**/*.tmpl',
|
'./templates/**/*.tmpl',
|
||||||
'./web_src/**/*.{js,vue}',
|
'./web_src/js/**/*.{js,vue}',
|
||||||
].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 New Issue
Block a user