diff --git a/packages/gatsby/cache-dir/app.js b/packages/gatsby/cache-dir/app.js index 34b2420139206..97025aac14ff7 100644 --- a/packages/gatsby/cache-dir/app.js +++ b/packages/gatsby/cache-dir/app.js @@ -13,6 +13,11 @@ import asyncRequires from "$virtual/async-requires" // Generated during bootstrap import matchPaths from "$virtual/match-paths.json" +// ensure in develop we have at least some .css (even if it's empty). +// this is so there is no warning about not matching content-type when site doesn't include any regular css (for example when css-in-js is used) +// this also make sure that if all css is removed in develop we are not left with stale commons.css that have stale content +import "./blank.css" + // Enable fast-refresh for virtual sync-requires module.hot.accept(`$virtual/async-requires`, () => { // Manually reload diff --git a/packages/gatsby/cache-dir/blank.css b/packages/gatsby/cache-dir/blank.css new file mode 100644 index 0000000000000..e69de29bb2d1d