Skip to content

Commit 7f847c7

Browse files
committed
feat: enable lighter builds
1 parent 55b688e commit 7f847c7

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

front_end/.storybook/main.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,5 @@ const config: StorybookConfig = {
88
options: {},
99
},
1010
staticDirs: ["../public", { from: "../public/fonts", to: "/fonts" }],
11-
viteFinal: async (viteConfig) => {
12-
viteConfig.build = {
13-
...viteConfig.build,
14-
rollupOptions: {
15-
output: {
16-
manualChunks(id) {
17-
if (id.includes("question_view")) return "questionViews";
18-
if (id.includes("question_layout")) return "questionLayouts";
19-
},
20-
},
21-
},
22-
};
23-
return viteConfig;
24-
},
2511
};
2612
export default config;

front_end/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"translations:generate": "node ./scripts/add_missing_translations.mjs",
1515
"pm2-runtime": "pm2 list && pm2-runtime start ecosystem.config.js",
1616
"storybook": "storybook dev -p 6006",
17-
"build-storybook": "NODE_OPTIONS=--max_old_space_size=16384 storybook build",
17+
"build-storybook": "storybook build --test",
1818
"test": "jest"
1919
},
2020
"dependencies": {

0 commit comments

Comments
 (0)