Skip to content

Commit

Permalink
fix svelte css path issues
Browse files Browse the repository at this point in the history
  • Loading branch information
spezifisch committed Sep 5, 2022
1 parent 8536f6d commit 0dd3f18
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
10 changes: 10 additions & 0 deletions frontend/postcss.config.cjs
@@ -0,0 +1,10 @@
const path = require("path")
const tailwindcss = require("tailwindcss")

module.exports = {
plugins: {
"tailwindcss/nesting": {},
tailwindcss: path.resolve(__dirname, "./tailwind.config.js"),
autoprefixer: {},
},
}
7 changes: 0 additions & 7 deletions frontend/postcss.config.js

This file was deleted.

8 changes: 7 additions & 1 deletion frontend/svelte.config.mjs
@@ -1,9 +1,15 @@
import preprocess from "svelte-preprocess"
import { dirname, join } from "path"
import { fileURLToPath } from "url"

const __dirname = dirname(fileURLToPath(import.meta.url))

export default {
preprocess: [
preprocess({
postcss: true,
postcss: {
configFilePath: join(__dirname, "postcss.config.cjs"),
},
typescript: true,
}),
],
Expand Down

0 comments on commit 0dd3f18

Please sign in to comment.