Upgrade Storybook configuration

This commit is contained in:
Eric Schultz 2020-09-24 11:55:07 -05:00 committed by Eric Schultz
parent 2953bb1992
commit eed7720b25

View file

@ -4,8 +4,15 @@ process.env.NODE_ENV = "development";
const railsWebpackEnv = require("../../config/webpack/environment");
module.exports = {
stories: ["../../app/javascript/**/*!(--html).stories.[tj]s?(x)"],
addons: ['@storybook/addon-actions', '@storybook/addon-links', 'storybook-addon-intl'],
stories: [
"../../app/javascript/**/*!(--html).stories.mdx",
"../../app/javascript/**/*!(--html).stories.[tj]s?(x)"
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
'storybook-addon-intl'
],
webpackFinal: (config) => {
const result = {
// do mutation to the config