mirror of https://github.com/halo-dev/halo-admin
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.
22 lines
488 B
22 lines
488 B
2 years ago
|
import { defineConfig } from "histoire";
|
||
|
import type { UserConfig } from "vite";
|
||
|
|
||
|
export default defineConfig({
|
||
|
setupFile: "./src/histoire.setup.ts",
|
||
|
|
||
|
vite: {
|
||
|
plugins: [
|
||
|
{
|
||
|
name: "disable-lib-plugin",
|
||
|
config(config: UserConfig) {
|
||
|
if (!config || !config.build || !config.build.rollupOptions) {
|
||
|
return;
|
||
|
}
|
||
|
config.build.lib = false;
|
||
|
config.build.rollupOptions.external = [];
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
});
|