Skip to content

Commit

Permalink
Merge pull request #984 from pantheon-systems/KIT-142-fix-gatsby-dev
Browse files Browse the repository at this point in the history
KIT-142: Fix gatsby develop infinite re-render
  • Loading branch information
mitchellmarkoff authored Dec 11, 2023
2 parents 9435f39 + c1e069c commit e0a6e0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-countries-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-pantheon-decoupled-kit': patch
---

[gatsby-wp] Fix develop mode infinite loop due to d.ts files
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ const { tailwindcssPlugin } = require('@pantheon-systems/wordpress-kit');
{{/if}}
module.exports = {
content: [
{{#if gatsby}}
'./src/{pages,components,templates}/**/*.{jsx,tsx}'
{{else}}
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./src/**/*.{js,jsx,ts,tsx}'
{{/if}}
],
theme: {
extend: {},
Expand Down

0 comments on commit e0a6e0f

Please sign in to comment.