Skip to content

Commit 72b213b

Browse files
silverwinddelvh
andauthored
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 <[email protected]>
1 parent ade6241 commit 72b213b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tailwind.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ export default {
2929
content: [
3030
isProduction && '!./templates/devtest/**/*',
3131
isProduction && '!./web_src/js/standalone/devtest.js',
32+
'!./templates/swagger/v1_json.tmpl',
33+
'!./templates/user/auth/oidc_wellknown.tmpl',
3234
'./templates/**/*.tmpl',
33-
'./web_src/**/*.{js,vue}',
35+
'./web_src/js/**/*.{js,vue}',
3436
].filter(Boolean),
3537
blocklist: [
3638
// classes that don't work without CSS variables from "@tailwind base" which we don't use

0 commit comments

Comments
 (0)