Skip to content

Commit

Permalink
Merge pull request #5540 from kiva/fix-augment-storybook-js-filenames
Browse files Browse the repository at this point in the history
fix: change storybook build generated js filenames so they do not sta…
  • Loading branch information
mcstover authored Sep 25, 2024
2 parents 973f175 + d244f08 commit 9f0a576
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,19 @@ const config = {
docs: {
autodocs: "tag",
},
async viteFinal(config) {
// Merge custom configuration into the default config
const { mergeConfig } = await import('vite');

return mergeConfig(config, {
build: {
rollupOptions: {
output: {
chunkFileNames: 'assets/entry-[name]-[hash:10].js',
},
},
},
});
},
};
export default config;

0 comments on commit 9f0a576

Please sign in to comment.