mirror of https://github.com/alibaba/ice.git
13 lines
232 B
TypeScript
13 lines
232 B
TypeScript
|
export default function createPlugin() {
|
||
|
return {
|
||
|
name: 'custom-plugin',
|
||
|
setup({ onGetConfig }) {
|
||
|
onGetConfig((config) => {
|
||
|
config.server = {
|
||
|
fallbackEntry: true,
|
||
|
};
|
||
|
});
|
||
|
},
|
||
|
};
|
||
|
}
|