FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

可以在webpack中使用么? · Issue #41 · regularjs/regular-devtools · GitHub

Repository navigation

可以在webpack中使用么? #41

Description

使用webpack开发,工具提示找不到Regular实例
主要代码如下:

import App from "./App";
import router  from "./router";
import restate   from "regular-state";

new App({
    data: {username: "leeluolee"}
}).$inject('#app');
restate()
    .state(router.routes) //完成路由节点注册
    .start({ html5: true ,view: document.getElementById('app')}); // 启动路由
```

Activity

  1. zxc0328 commented on Oct 25, 2017

    Member

    可以的。只要你使用了Regular v0.5.0+。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL