@vnxjs/vnmf-loader

3.5.66 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @vnxjs/vnmf-loader

Weekly Downloads

13

Version

3.5.66

License

MIT

Unpacked Size

36.1 kB

Total Files

22

Last publish

Collaborators

  • sonnt5vnpay
  • khoidtvnpay
  • vnpay