0

我正在尝试使用 buildfiresdk 创建一个应用程序。我使用“buildfire plugin init webpack”命令生成了一个 buildfire 插件,但是我不确定如何编辑此模板以使其成为我自己的。任何人都可以向我指出有助于解决此问题的文档。

4

1 回答 1

0

You should see 2 folders on the root of the plugin folder:

  • webpack: Responsible for all your webpack settings. You may not need to change anything.
  • src: This is where all your plugin source code is at. You will be making the majority of your changes here.

This template has some dependencies. So you want to navigate through the CLI to the root of the plugin and then execute npm install this will then install all that is needed.

Once the dependencies are installed. You can now run webpack to auto bundle changes for you on the fly by executing npm start at the root of the plugin.

You should be ready to start the SDK now. Simply open a separate terminal window. Then navigate to the root of the SDK and execute buildfire run

You should be good to go.

于 2018-11-26T17:04:19.477 回答