-
Notifications
You must be signed in to change notification settings - Fork 132
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
使用了redux如何用devtools #32
Comments
请问报什么错呢? 我看了一下你的 链接,如果在配合 mina-webpack 使用的话,文中 |
之前都没有,说起来这篇文章还挺实用。 我试了下能正常运行了,你遇到的情况应该是因为 他修改后的包 做了 UMD 打包,所以在 mina-webpack 的配置下面需要单独禁止这个文件使用 babel-loader 重复编译: // webpack.config.js
// ...
module: {
rules: [
{
test: /\.js$/,
- exclude: /node_modules/,
+ exclude: [
+ /node_modules/,
+ resolve('src/libs/remote-redux-devtools.js'), // 你存放 remote-redux-devtools.js 文件的位置
+ ],
use: 'babel-loader',
},
// ...
|
非常感谢及时的帮我解决问题。采用了你的方式已经成功跑起来了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用了redux,但是需要devtools观察数据 参考了这个链接的处理,但是require了remote-redux-devtools.js出现报错
The text was updated successfully, but these errors were encountered: