Skip to content

Commit

Permalink
fix: fix pages tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Feb 24, 2021
1 parent e8eac56 commit 8fdeb25
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions examples/starter/.config/buildtime.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
const path = require('path');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;
const { defaultBuildConfig } = require('@component-controls/core');

module.exports = {
siteRoot: '/root/',
stories: [
'../src/docs/*.@(mdx|tsx)',
],
stories: ['../src/docs/*.@(mdx|tsx)'],
webpack: (config = {}, options = {}) => {
return {
...config,
plugins: [
...config.plugins,
// new BundleAnalyzerPlugin()
]
],
};
},
pages: {
story: {
tabs: [
...defaultBuildConfig.pages.story.tabs,
{ route: 'test' },
],
tabs: {
page: '@component-controls/pages/ClassicPage',
test: '@component-controls/pages/TestingPage',
},
},
},
instrument: {
Expand Down Expand Up @@ -50,5 +49,5 @@ module.exports = {
return filePath;
},
},
}
};
},
};

0 comments on commit 8fdeb25

Please sign in to comment.