This repository has been archived on 2025-03-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
movie-react-app/vite.config.js
“Henry-Hiles” 4ff46b5103 Set base path
2022-11-15 10:56:40 -05:00

16 lines
484 B
JavaScript

import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"
import path from "path"
export default defineConfig({
plugins: [react()],
base: "/movie-react-app/",
resolve: {
alias: {
styles: path.resolve(__dirname, "/src/styles"),
components: path.resolve(__dirname, "/src/components"),
hooks: path.resolve(__dirname, "/src/hooks"),
pages: path.resolve(__dirname, "/src/pages"),
},
},
})