InvokeAI/invokeai/frontend/web/vite.config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
436 B
TypeScript
Raw Normal View History

2023-04-28 05:44:27 +00:00
import { defineConfig } from 'vite';
import { commonConfig } from './config/vite.common.config';
import { appConfig } from './config/vite.app.config';
import { packageConfig } from './config/vite.package.config';
import { defaultsDeep } from 'lodash';
export default defineConfig(({ mode }) => {
2023-04-28 05:44:27 +00:00
if (mode === 'package') {
return defaultsDeep(packageConfig, commonConfig);
}
2023-04-28 05:44:27 +00:00
return defaultsDeep(appConfig, commonConfig);
});