如何将Polymer-redux与Polymer-Build一起使用? [英] How to use polymer-redux with polymer-build?

查看:76
本文介绍了如何将Polymer-redux与Polymer-Build一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前已经基于聚合物自定义构建.我已经修改了该项目,以添加 polymer-redux 的用法.从那时起,当尝试使用命令gulp build生成捆绑项目时,我遇到了以下问题

I've currently started a new project based on Polymer Custom Build. I've modified the project in order to add usage of polymer-redux. Since then, when trying to build a bundled project using the command gulp build, I have the following problem

[unknown-polymer-behavior]-无法解决行为ReduxBehavior.您导入了吗?它用@polymerBehavior注释吗?

[unknown-polymer-behavior] - Unable to resolve behavior ReduxBehavior. Did you import it? Is it annotated with @polymerBehavior?

使用ReduxBehavior = PolymerRedux(store);声明ReduxBehavior是很不常见的.

Declaring the ReduxBehavior is done using ReduxBehavior = PolymerRedux(store); which is not very usual.

有人成功地使Polymer-build和Polymer-redux一起工作了吗?

Anybody succeeded to make both of polymer-build and polymer-redux work together ?

推荐答案

您可以使用Redux Application检查Polymer 2的示例存储库.

You can check the sample repo for Polymer 2 with Redux Application.

https://github.com/kumarargutech/polymer-redux

希望对您有帮助!

这篇关于如何将Polymer-redux与Polymer-Build一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆