diff --git a/theme/static_src/src/styles.css b/theme/static_src/src/styles.css index 9bf3c00..813501c 100644 --- a/theme/static_src/src/styles.css +++ b/theme/static_src/src/styles.css @@ -1,5 +1,11 @@ @import "tailwindcss"; +/* Templates within theme app (e.g. base.html) */ +@source "../../templates/**/*.html"; + +/* Templates in other apps */ +@source "../../../**/templates/*.html"; + /** * A catch-all path to Django template files, JavaScript, and Python files * that contain Tailwind CSS classes and will be scanned by Tailwind to generate the final CSS file. @@ -8,3 +14,6 @@ * the scope of this path. */ @source "../../../**/*.{html,py,js}"; + +/* Ignore files in node_modules */ +@source not "../../../**/node_modules"; diff --git a/theme/static_src/tailwind.config.js b/theme/static_src/tailwind.config.js deleted file mode 100644 index 388e5b7..0000000 --- a/theme/static_src/tailwind.config.js +++ /dev/null @@ -1,8 +0,0 @@ -export const content = [ - // Templates within theme app (e.g. base.html) - "../templates/**/*.html", - // Templates in other apps - "../../**/templates/*.html", - // Ignore files in node_modules - "!../../**/node_modules", -];