storybook,core-components: fix storybook config and Link and Button storybooks

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-05-29 16:28:34 +02:00
parent 1909d0cccf
commit 5dc28f4375
3 changed files with 40 additions and 27 deletions
+1 -5
View File
@@ -3,8 +3,7 @@ const WebpackPluginFailBuildOnWarning = require('./webpack-plugin-fail-build-on-
module.exports = {
stories: [
'../../components/src/layout/**/*.stories.tsx',
'../../components/src/components/**/*.stories.tsx',
'../../core-components/src/**/*.stories.tsx',
'../../../plugins/**/src/**/*.stories.tsx',
],
addons: [
@@ -14,9 +13,6 @@ module.exports = {
'storybook-dark-mode/register',
],
webpackFinal: async config => {
/* eslint-disable-next-line no-restricted-syntax */
const componentsSrc = path.resolve(__dirname, '../../components/src');
// Mirror config in packages/cli/src/lib/bundler
config.resolve.mainFields = ['browser', 'module', 'main'];