Skip to content

Commit

Permalink
Update vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Respirayson authored Dec 22, 2023
1 parent a0053aa commit 2e7c97a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,21 @@ export default defineConfig({
},
}
})

export default defineConfig(({ command }) => {
const config = {
plugins: [react()],
base: '/',
css: {
postcss: {
plugins: [tailwindcss()],
},
}
}

if (command !== 'serve') {
config.base = '/comclub-website-2024/'
}

return config
})

0 comments on commit 2e7c97a

Please sign in to comment.