Skip to content

Commit

Permalink
Do not include addon register file on preview (#426)
Browse files Browse the repository at this point in the history
The register function should be only used on Storybook Manager
  • Loading branch information
Muhammed Thanish authored and arunoda committed Sep 7, 2016
1 parent e2280db commit 83655bf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ export default function (configType, baseConfig, configDir) {
const storybookCustomAddonsPath = path.resolve(configDir, 'addons.js');
if (fs.existsSync(storybookCustomAddonsPath)) {
logger.info('=> Loading custom addons config.');
config.entry.preview.unshift(storybookCustomAddonsPath);
config.entry.manager.unshift(storybookCustomAddonsPath);
} else {
config.entry.preview.unshift(storybookDefaultAddonsPath);
config.entry.manager.unshift(storybookDefaultAddonsPath);
}

Expand Down

0 comments on commit 83655bf

Please sign in to comment.