build-plugin-ice-mpa
v2.1.2
Published
enable mpa project for icejs framework
Downloads
878
Keywords
Readme
plugin-ice-mpa
plugin for icejs to support mpa
Usage
modify build options to enable mpa
build.json
:
{
"mpa": true
}
config router in each app.[t|j]s
under src/pages
import { runApp } from 'ice'
import Dashboard from './index'
const appConfig = {
router: {
routes: [{ path: '/', component: Dashboard }],
},
}
runApp(appConfig)