如何将Polymer-redux与Polymer-Build一起使用? [英] How to use polymer-redux with 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屋!