Editor.Builder

本文只是对 API 的简要介绍,关于 Builder 的具体用法请参考 定制项目构建流程

Methods

Editor.Builder.on(eventName, callback)

  • eventName string - The name of the event
  • callback function - The event callback
    • options object - Callback params, the build options
    • cb function - Need to call cb when the callback process finished

Editor.Builder.once(eventName, callback)

  • eventName string - The name of the event
  • callback function - The event callback
    • options object - Callback params, the build options
    • cb function - Need to call cb when the callback process finished

Editor.Builder.removeListener(eventName, callback)

  • eventName string - The name of the event
  • callback function - The event callback

Events

Event: 'build-finished'

Emit when build finished

Event: 'compile-finished'

Emit when compile finished

Event: 'before-change-files'

Emit before editor modifies the build files (e.g, before encryption js files)

results matching ""

    No results matching ""