3.5.66 • Published 3 years ago

@vnxjs/vnmf-loader v3.5.66

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@vnxjs/vnmf-loader

Webpack loader exposed to @vnxjs/mini-runner and @vnxjs/webpack-runner, including the following loader:

app

Small program dedicated. Call the createReactApp/createVueApp methods of @vnxjs/runtime in the applet entry file to create an object accepted by the applet App constructor.

options:

page

Small program dedicated. Call the createPageConfig method of @vnxjs/runtime in the applet page file to create an object accepted by the applet Page constructor.

options:

  • framework: framework type, 'react' | 'nerv' | 'vue' | 'vue3'
  • name: page path

page

Small program dedicated. Call the createComponentConfig method of @vnxjs/runtime in the applet page file to create an object accepted by the applet Component constructor.

options:

  • framework: framework type, 'react' | 'nerv' | 'vue' | 'vue3'
  • name: page path

h5

Exclusively for H5. Call the createRouter method of @vnxjs/router in the applet entry file to create an application compatible with the applet life cycle and routing system.

options:

  • framework: framework type, 'react' | 'nerv' | 'vue' | 'vue3'
  • config: Application configuration, corresponding to app.config.js
  • pages: page configuration, corresponding to page.config.js
  • filename: filename