-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use css custom variables and gilroy fonts in stories
Also added some prettier ignores.
- Loading branch information
Taro Morimoto
committed
Jun 23, 2020
1 parent
5e7e2a5
commit c25a718
Showing
43 changed files
with
1,359 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,38 @@ | ||
|
||
module.exports = { | ||
stories: ['../src/**/*.stories.js'], | ||
addons: ['@storybook/addon-docs'], | ||
|
||
webpackFinal: async (config, { configType }) => { | ||
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
// You can change the configuration based on that. | ||
// 'PRODUCTION' is used when building the static version of storybook. | ||
|
||
config.module.rules.map((rule) => { | ||
if (rule.oneOf) { | ||
rule.oneOf = rule.oneOf.slice().map((subRule) => { | ||
if (subRule.test instanceof RegExp && subRule.test.test('.scss')) { | ||
return { | ||
...subRule, | ||
use: [ | ||
...subRule.use, | ||
{ | ||
loader: require.resolve('sass-resources-loader'), | ||
options: { | ||
resources: [ | ||
path.resolve(__dirname, '../src/styles/index.scss') | ||
] | ||
} | ||
} | ||
], | ||
} | ||
} | ||
return subRule; | ||
}); | ||
} | ||
return rule; | ||
}); | ||
return config; | ||
}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.