Upgrade Storybook configuration
This commit is contained in:
parent
2953bb1992
commit
eed7720b25
1 changed files with 9 additions and 2 deletions
|
@ -4,8 +4,15 @@ process.env.NODE_ENV = "development";
|
||||||
const railsWebpackEnv = require("../../config/webpack/environment");
|
const railsWebpackEnv = require("../../config/webpack/environment");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
stories: ["../../app/javascript/**/*!(--html).stories.[tj]s?(x)"],
|
stories: [
|
||||||
addons: ['@storybook/addon-actions', '@storybook/addon-links', 'storybook-addon-intl'],
|
"../../app/javascript/**/*!(--html).stories.mdx",
|
||||||
|
"../../app/javascript/**/*!(--html).stories.[tj]s?(x)"
|
||||||
|
],
|
||||||
|
addons: [
|
||||||
|
"@storybook/addon-links",
|
||||||
|
"@storybook/addon-essentials",
|
||||||
|
'storybook-addon-intl'
|
||||||
|
],
|
||||||
webpackFinal: (config) => {
|
webpackFinal: (config) => {
|
||||||
const result = {
|
const result = {
|
||||||
// do mutation to the config
|
// do mutation to the config
|
||||||
|
|
Loading…
Reference in a new issue