diff options
Diffstat (limited to 'examples/with-tailwindcss')
-rw-r--r-- | examples/with-tailwindcss/astro.config.mjs | 4 | ||||
-rw-r--r-- | examples/with-tailwindcss/package.json | 8 | ||||
-rw-r--r-- | examples/with-tailwindcss/postcss.config.js | 6 | ||||
-rw-r--r-- | examples/with-tailwindcss/tailwind.config.js | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/examples/with-tailwindcss/astro.config.mjs b/examples/with-tailwindcss/astro.config.mjs index 878577d74..68499b3fa 100644 --- a/examples/with-tailwindcss/astro.config.mjs +++ b/examples/with-tailwindcss/astro.config.mjs @@ -8,10 +8,6 @@ // @ts-check export default /** @type {import('astro').AstroUserConfig} */ ({ - // Enable Tailwind by telling Astro where your Tailwind config file lives. - devOptions: { - tailwindConfig: './tailwind.config.js', - }, // Enable the Preact renderer to support Preact JSX components. renderers: ['@astrojs/renderer-preact'], }); diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index 016c6bf57..0af749c58 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -9,10 +9,8 @@ "preview": "astro preview" }, "devDependencies": { - "tailwindcss": "^2.1.2", - "astro": "^0.20.12" - }, - "snowpack": { - "workspaceRoot": "../.." + "astro": "^0.20.12", + "autoprefixer": "^10.3.7", + "tailwindcss": "^2.2.17" } } diff --git a/examples/with-tailwindcss/postcss.config.js b/examples/with-tailwindcss/postcss.config.js new file mode 100644 index 000000000..12a703d90 --- /dev/null +++ b/examples/with-tailwindcss/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +}; diff --git a/examples/with-tailwindcss/tailwind.config.js b/examples/with-tailwindcss/tailwind.config.js index dc8c3ae87..e30b1f4de 100644 --- a/examples/with-tailwindcss/tailwind.config.js +++ b/examples/with-tailwindcss/tailwind.config.js @@ -1,4 +1,4 @@ module.exports = { mode: 'jit', - purge: ['./public/**/*.html', './src/**/*.{astro,js,jsx,ts,tsx,vue,svelte}'], + purge: ['**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}'], }; |