Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel-preset-react-hmre 不能生效 #1

Closed
BaoXuebin opened this issue Aug 13, 2017 · 1 comment
Closed

babel-preset-react-hmre 不能生效 #1

BaoXuebin opened this issue Aug 13, 2017 · 1 comment
Labels

Comments

@BaoXuebin
Copy link
Owner

版本 @1.1.1,暂时未发现原因。

.babelrc 配置如下:

{
    "presets": ["es2015", "react"],
    "env": {
        "development": {
            "presets": ["react-hmre"]
        }
    }
}
@BaoXuebin
Copy link
Owner Author

使用 webpack-dev-middleware 代替 webpack-dev-server, webpack.config.js 的入口添加 webpack-hot-middleware/client 以实现 hmr 热替换.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant