Move storybook react config to react subdirectory
This commit is contained in:
parent
267a05a6ad
commit
7a11b88a92
2 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
// License: LGPL-3.0-or-later
|
||||
// Based on https://github.com/rails/webpacker/issues/1004#issuecomment-628377930
|
||||
process.env.NODE_ENV = "development";
|
||||
const railsWebpackEnv = require("../config/webpack/environment");
|
||||
const railsWebpackEnv = require("../../config/webpack/environment");
|
||||
|
||||
module.exports = {
|
||||
stories: ["../app/javascript/**/*.stories.[tj]s?(x)"],
|
||||
stories: ["../../app/javascript/**/*!(--html.)stories.[tj]s?(x)"],
|
||||
addons: ['@storybook/addon-actions', '@storybook/addon-links', 'storybook-addon-intl'],
|
||||
webpackFinal: (config) => {
|
||||
const result = {
|
|
@ -1,5 +1,5 @@
|
|||
import { addDecorator } from '@storybook/react';
|
||||
import { withIntl, setIntlConfig } from '../app/javascript/components/tests/intl';
|
||||
import { withIntl, setIntlConfig } from '../../app/javascript/components/tests/intl';
|
||||
|
||||
const messages = {
|
||||
'en': { 'button.label': 'Click me!' },
|
Loading…
Reference in a new issue