我有一个我创建的 React 应用程序,create-react-app
并添加了故事书。当我运行yarn run storybook
它时,当我更改文件时它不会重新加载。
我的应用程序布局如下
src
->components
--->aComponent.js
->stories
--->index.js
->index.js
这是我的 package.json
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"immutable": "^3.8.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public"
},
"devDependencies": {
"@storybook/addon-actions": "^3.3.14",
"@storybook/addon-links": "^3.3.14",
"@storybook/addons": "^3.3.14",
"@storybook/react": "^3.3.14",
"babel-core": "^6.26.0",
"flow-bin": "^0.67.1"
}
}
我没有自定义 web pack 配置。我需要做什么才能使热模块重新加载工作?