mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-29 06:31:58 +00:00
fix(storybook): hold the Storybook build to the app's chunk-size ceiling
The panel build allows 1500 kB chunks, but the Storybook build kept Vite's 500 kB default, so every build warned about the bundled UI and the axe engine from the accessibility addon.
This commit is contained in:
1 parent
a46bed383c
commit
de21c128fc
1 file changed
+2
@@ -15,6 +15,8 @@ const config: StorybookConfig = {
|
||||
if (viteConfig.build) {
|
||||
viteConfig.build.outDir = undefined;
|
||||
viteConfig.build.emptyOutDir = false;
|
||||
// Storybook bundles the whole UI plus the axe engine; hold it to the app's chunk ceiling.
|
||||
viteConfig.build.chunkSizeWarningLimit = 1500;
|
||||
if (viteConfig.build.rollupOptions) {
|
||||
viteConfig.build.rollupOptions.input = undefined;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user