mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +00:00
storybook and template fixes
This commit is contained in:
parent
7371b5e490
commit
0e2c981560
11 changed files with 69 additions and 30 deletions
|
@ -1,5 +1,6 @@
|
|||
const path = require('path');
|
||||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||||
const { NormalModuleReplacementPlugin } = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
|
||||
|
@ -11,6 +12,11 @@ module.exports = {
|
|||
}),
|
||||
];
|
||||
|
||||
config.resolve.alias['next/link'] = path.resolve(
|
||||
__dirname,
|
||||
'mocks/next_link.tsx'
|
||||
);
|
||||
|
||||
return config;
|
||||
},
|
||||
typescript: {
|
||||
|
|
8
.storybook/mocks/next_link.tsx
Normal file
8
.storybook/mocks/next_link.tsx
Normal file
|
@ -0,0 +1,8 @@
|
|||
import * as React from 'react';
|
||||
|
||||
type Props = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
const Link = (props: Props) => <>{props.children}</>;
|
||||
|
||||
export default Link;
|
Loading…
Add table
Add a link
Reference in a new issue