@vnxjs/vnmf-loader
v3.5.66
Published
Vnmf runner use webpack loader
Downloads
6
Readme
@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:
framework
: framework type,'react' | 'nerv' | 'vue' | 'vue3'
prerender
: prerender configuration
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.jspages: page configuration, corresponding to
page.config.jsfilename
: filename