Skip to content

Commit

Permalink
move postcss config to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
gawlk authored and futurepaul committed Aug 16, 2023
1 parent 17d70e2 commit 89d175e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 0 additions & 6 deletions postcss.config.cjs

This file was deleted.

9 changes: 8 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<VitePWAOptions> = {
base: "/",
Expand Down Expand Up @@ -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()]
}
}
});

0 comments on commit 89d175e

Please sign in to comment.