Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
add workaround for building a static version
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenykochetkov committed Aug 13, 2017
1 parent 96c7675 commit 902191b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const path = require('path');

module.exports = (storybookBaseConfig, configType) => {
if (configType === 'PRODUCTION') {
// see https://github.com/storybooks/storybook/issues/1570
storybookBaseConfig.plugins = storybookBaseConfig.plugins.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin')
}

return storybookBaseConfig;
};

0 comments on commit 902191b

Please sign in to comment.