@vnxjs/vnmf-loader

Vnmf runner use webpack loader
1,593
Install
npm install @vnxjs/vnmf-loader
Latest Version:3.5.66
License:MIT
Last Updated:Nov 1, 2022
Links: npm
Maintainer: sonnt5vnpay

@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

Version History

Version Released License
3.5.66 MIT