mirror of https://github.com/halo-dev/halo-admin
23 lines
557 B
TypeScript
23 lines
557 B
TypeScript
import { defineConfig } from "histoire";
|
|
import type { UserConfig } from "vite";
|
|
import { HstVue } from "@histoire/plugin-vue";
|
|
|
|
export default defineConfig({
|
|
setupFile: "./src/histoire.setup.ts",
|
|
plugins: [HstVue()],
|
|
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 = [];
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|