21 lines
511 B
TypeScript
21 lines
511 B
TypeScript
/** WARNING: DON'T EDIT THIS FILE */
|
|
/** WARNING: DON'T EDIT THIS FILE */
|
|
/** WARNING: DON'T EDIT THIS FILE */
|
|
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
function getPlugins() {
|
|
const plugins = [react(), tsconfigPaths()];
|
|
return plugins;
|
|
}
|
|
|
|
|
|
|
|
export default defineConfig(({ command }) => ({
|
|
plugins: getPlugins(),
|
|
base: command === 'build'
|
|
? '/wp-content/products/react-apps/alisurvey/'
|
|
: '/alisurvey'
|
|
})); |