Skip to content

Commit

Permalink
Merge pull request #104 from rcpch:fonts
Browse files Browse the repository at this point in the history
Fonts
  • Loading branch information
eatyourpeas authored Sep 6, 2024
2 parents 375d5c9 + b853da8 commit 1ad6670
Show file tree
Hide file tree
Showing 43 changed files with 1,242 additions and 2,106 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
build/
dist/
storybook-static/
.DS_Store
.vscode
30 changes: 10 additions & 20 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,23 @@ import type { StorybookConfig } from '@storybook/react-webpack5';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
staticDirs: ['../src/images', '../src/fonts'],
staticDirs: ['../src/images'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
'@storybook/addon-mdx-gfm',
'@storybook/addon-webpack5-compiler-babel',
{
name: '@storybook/addon-styling-webpack',
options: {
rules: [
// Replaces existing CSS rules with given rule
{
test: /\.css$/,
use: [
'style-loader',
'css-loader',
{
loader: "sass-loader",
options: { implementation: require.resolve("sass") }
},
],
}
]
}
}
// {
// name: '@storybook/addon-styling-webpack',
// options: {
// rules: [
// // Replaces existing CSS rules with given rule
// // s
// ]
// }
// }
],
framework: {
name: '@storybook/react-webpack5',
Expand Down
Loading

0 comments on commit 1ad6670

Please sign in to comment.