summaryrefslogtreecommitdiff
path: root/examples/with-tailwindcss/postcss.config.js
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-11-04 14:01:28 -0600
committerGravatar GitHub <noreply@github.com> 2021-11-04 14:01:28 -0600
commit2e1bded735f3e2149c3ff95b1c131a147dda0f34 (patch)
tree1f4433cad8db49e5be6ae8bbc4f277de9d5fa7e0 /examples/with-tailwindcss/postcss.config.js
parent2c5e67bb44398080037c02fbdd756cc66e757f1e (diff)
downloadastro-2e1bded735f3e2149c3ff95b1c131a147dda0f34.tar.gz
astro-2e1bded735f3e2149c3ff95b1c131a147dda0f34.tar.zst
astro-2e1bded735f3e2149c3ff95b1c131a147dda0f34.zip
Get Tailwind HMR working (first cut) (#1736)
* Get Tailwind HMR working * PR feedback * perf: improve HMR `head` performance Co-authored-by: Nate Moore <nate@skypack.dev>
Diffstat (limited to 'examples/with-tailwindcss/postcss.config.js')
-rw-r--r--examples/with-tailwindcss/postcss.config.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/with-tailwindcss/postcss.config.js b/examples/with-tailwindcss/postcss.config.js
index 12a703d90..7cffbeb55 100644
--- a/examples/with-tailwindcss/postcss.config.js
+++ b/examples/with-tailwindcss/postcss.config.js
@@ -1,6 +1,10 @@
+const path = require('path');
+
module.exports = {
plugins: {
- tailwindcss: {},
+ tailwindcss: {
+ config: path.join(__dirname, 'tailwind.config.js'), // update this if your path differs!
+ },
autoprefixer: {},
},
};