Skip to content

Commit

Permalink
docs: Speed up building the Storybook example
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Nov 27, 2022
1 parent c36cafc commit 6a4bf70
Show file tree
Hide file tree
Showing 3 changed files with 7,002 additions and 3,970 deletions.
25 changes: 23 additions & 2 deletions example/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,31 @@ module.exports = {
'../stories/**/*.stories.@(js|jsx|ts|tsx)'
],
addons: [
'@storybook/addon-essentials'
'@storybook/addon-essentials',
{
name: 'storybook-addon-turbo-build',
options: {
optimizationLevel: 4,
previewTranspiler() {
return {
loader: 'swc-loader'
}
},
managerTranspiler() {
return null
}
}
}
],
framework: '@storybook/html',
core: {
disableTelemetry: true
disableTelemetry: true,
builder: {
name: 'webpack5',
options: {
lazyCompilation: true,
fsCache: true
}
}
}
}
Loading

0 comments on commit 6a4bf70

Please sign in to comment.