ice/examples/with-fallback-entry/plugin.ts

13 lines
232 B
TypeScript

export default function createPlugin() {
return {
name: 'custom-plugin',
setup({ onGetConfig }) {
onGetConfig((config) => {
config.server = {
fallbackEntry: true,
};
});
},
};
}