npm.io
0.20.2 • Published 3 years ago

@duhongwei/hotpack-vue3

Licence
MIT
Version
0.20.2
Deps
4
Size
9 kB
Vulns
0
Weekly
0

Hotpack-vue3

hotpack vue3 plugin

Install

environment node >=14

npm install @duhongwei/hotpack-vue3

examgle

clone the template project to experience all the features

git clone https://github.com/duhongwei/hotpack-tpl-vue3.git  my-app
cd my-app
npm install

more detail

Usage

@duhongwei/hotpack-vue3 provides references to vue, vue-router, vuex, supports pre-rendering and server-side rendering, no need to install these three modules separately

Client Reference
import Vue from 'vue'
import vueRouter from 'vue-router'
import Vuex from 'vuex'

These modules will be packaged into the final file only if you actually use them.

Server Reference
import {Vue,VueRouter,Vuex} from "@duhongwei/hotpack-vue3"

Pre-rendering and server-side rendering

See vue3 example