You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
592 B
23 lines
592 B
import { defineConfig } from "vite";
|
|
import { createBuildConfig } from "./vite.config.common.mts";
|
|
|
|
export default defineConfig(async () => {
|
|
const baseConfig = await createBuildConfig('capacitor');
|
|
|
|
return {
|
|
...baseConfig,
|
|
build: {
|
|
...baseConfig.build,
|
|
rollupOptions: {
|
|
...baseConfig.build?.rollupOptions,
|
|
// Externalize Capacitor plugins that are bundled natively
|
|
external: [
|
|
"@timesafari/daily-notification-plugin"
|
|
],
|
|
output: {
|
|
...baseConfig.build?.rollupOptions?.output,
|
|
}
|
|
}
|
|
}
|
|
};
|
|
});
|