From 89d175e45d6c4ce877556ecb8c42282696222873 Mon Sep 17 00:00:00 2001 From: gawlk Date: Wed, 16 Aug 2023 12:17:45 +0200 Subject: [PATCH] move postcss config to vite --- postcss.config.cjs | 6 ------ vite.config.ts | 9 ++++++++- 2 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 postcss.config.cjs diff --git a/postcss.config.cjs b/postcss.config.cjs deleted file mode 100644 index 33ad091d..00000000 --- a/postcss.config.cjs +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/vite.config.ts b/vite.config.ts index 01e9760e..439d1fc2 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,8 +2,10 @@ import solid from "solid-start/vite"; import { defineConfig } from "vite"; import { VitePWA, VitePWAOptions } from "vite-plugin-pwa"; import wasm from "vite-plugin-wasm"; +import autoprefixer from "autoprefixer"; +import tailwindcss from "tailwindcss"; -import * as path from 'path' +import * as path from "path"; const pwaOptions: Partial = { base: "/", @@ -62,5 +64,10 @@ export default defineConfig({ ], // This is necessary because otherwise `vite dev` can't find the wasm exclude: ["@mutinywallet/mutiny-wasm", "@mutinywallet/waila-wasm"] + }, + css: { + postcss: { + plugins: [autoprefixer(), tailwindcss()] + } } });