@wiajs/router
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

English | 简体中文

wia router

Introduction

wia router is the official router for wia.js. It deeply integrates with wia.js core to make building Multiple Page Applications with wia.js a breeze. Features include:

  • Nested route/view mapping
  • Page-based router No configuration
  • Dynamic loading of html, css, js
  • Route params, query, wildcards
  • Links with automatic active CSS classes
  • Hash mode

Build

You will need Node.js installed on your system.

First, install all required dependencies

$ npm install

To build development version:

$ npm run build-dev

The resulting files are:

  1. dist/router.common.js
  2. dist/router.common.map
  3. dist/router.esm.js
  4. dist/router.esm.map
  5. dist/router.umd.js
  6. dist/router.umd.map

To build production (minified) version:

$ npm run build

The resulting files are:

  1. dist/router.common.js
  2. dist/router.common.min.js
  3. dist/router.esm.js
  4. dist/router.esm.min.js
  5. dist/router.umd.js
  6. dist/router.min.js

use

  import Router from @wiajs/router

Stay In Touch

  • For latest releases and announcements, follow on Twitter: @wiajs

License

ELv2

Copyright (c) 2020-present Sibyl Yu

Readme

Keywords

Package Sidebar

Install

npm i @wiajs/router

Weekly Downloads

2

Version

1.0.15

License

ELv2

Unpacked Size

172 kB

Total Files

17

Last publish

Collaborators

  • walteryu
  • sibylyu