Skip to content

Commit

Permalink
refactor: set static folder to publicDir
Browse files Browse the repository at this point in the history
  • Loading branch information
aekasitt committed Nov 14, 2024
1 parent 3b6d3a8 commit 629b219
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
11 changes: 10 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
/* ~~/vite.config.js */
/* ~~/vite.config.ts */

import { URL, fileURLToPath } from 'node:url'

Check failure on line 3 in vite.config.ts

View workflow job for this annotation

GitHub Actions / build

Cannot find module 'node:url' or its corresponding type declarations.
import autoprefixer from 'autoprefixer'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwind from 'tailwindcss'

// https://vite.dev/config/
export default defineConfig({
base: '/bronx/',
css: {
postcss: {
plugins: [tailwind(), autoprefixer()],
},
},
plugins: [react()],
publicDir: fileURLToPath(new URL('./static', import.meta.url)),

Check failure on line 18 in vite.config.ts

View workflow job for this annotation

GitHub Actions / build

Property 'url' does not exist on type 'ImportMeta'.
})

0 comments on commit 629b219

Please sign in to comment.