diff options
author | silverwind <me@silverwind.io> | 2024-03-05 05:31:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 04:31:29 +0000 |
commit | 72b213b00fe1aa18d082423fbc4cfffff483eb18 (patch) | |
tree | 39441091f49ffa2277d2f511334c70a0d20272b3 /tailwind.config.js | |
parent | ade62416917bc87810991585d7047851834ee316 (diff) | |
download | gitea-72b213b00fe1aa18d082423fbc4cfffff483eb18.tar.gz gitea-72b213b00fe1aa18d082423fbc4cfffff483eb18.zip |
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>
Diffstat (limited to 'tailwind.config.js')
-rw-r--r-- | tailwind.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tailwind.config.js b/tailwind.config.js index fb17980568..63a5387d19 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -29,8 +29,10 @@ export default { content: [ isProduction && '!./templates/devtest/**/*', isProduction && '!./web_src/js/standalone/devtest.js', + '!./templates/swagger/v1_json.tmpl', + '!./templates/user/auth/oidc_wellknown.tmpl', './templates/**/*.tmpl', - './web_src/**/*.{js,vue}', + './web_src/js/**/*.{js,vue}', ].filter(Boolean), blocklist: [ // classes that don't work without CSS variables from "@tailwind base" which we don't use |