vue3-cli-service
v1.0.1
Published
A template with minimum requirements based on Vue3 and served by vue-cli-service
Downloads
9
Readme
vue3-cli-service
Template Vue3 + @vue/cli-service
Description
'Vue3 + @vue/cli-service' is a model with minimum requirements based on Vue3 and served by vue-cli-service.
It is the result of this tutorial, which aims to illustrate the use of COMPOSITION-API on vue3 served by @vue/cli-service.
Installation
1- Clone this repo and run
git clone github.com/wissemb11/vue3-cli-service
- change directory
cd vue3-cli-service
- Install node modules
npm i
4- Run the serve command for development and watch
npm run serve
Edit file src/main.js
COMPOSITION API case
import { createApp, h } from 'vue'
import './style.css'
// import App from './App.vue'
let App = {
props:['props1','props2']
setup(props,context) {
return () => [h('h1', '# Vue3-COMPOSITION-API ON the SERVER SIDE'),
h('p', ...),
...
]
}
}
createApp(App).mount('#app')
OPTIONS API case
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
const app = createApp(App)
app.mount('#app')