Skip to content

Commit

Permalink
Adjust tailwind content globs (#29596)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
silverwind and delvh authored Mar 5, 2024
1 parent ade6241 commit 72b213b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72b213b

Please sign in to comment.