hel-tpl-remote-vue3-comps-ts
Version:
A simple remote vue3 comp template(typescript、dev with vite or webpack, build with webpack ), see [online usage](https://codesandbox.io/s/demo-load-remote-vue3-comp-2fd34s?file=/src/main.js)
37 lines (26 loc) • 764 B
Markdown
# hel-tpl-remote-vue3-comps-ts
A simple remote vue3 comp template(typescript、dev with vite or webpack, build with webpack ), see [online usage](https://codesandbox.io/s/demo-load-remote-vue3-comp-2fd34s?file=/src/main.js)
## desc
- vite 开发
```bash
npm run start:vite
```
- webpack 开发
```bash
npm run start
```
- 打包与发布
**先修改版本号**,再执行打包与发布命令(这点很重要,顺序不能弄反为:先构建再修改版本号)
```
npm run build
npm publish
```
> 构建是基于webpack构建
## how to make project skeleton
```bash
npm i @vue/cli -g
vue create hel-tpl-remote-vue3-comps-ts --packageManager=npm
cd hel-tpl-remote-vue3-comps-ts
// https://github.com/IndexXuan/vue-cli-plugin-vite
vue add vite
```