Skip to content

A template with minimum requirements based on Vue3 and served by vue-cli-service

License

Notifications You must be signed in to change notification settings

wissemb11/vue3-cli-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

demo

For live demo,

Installation

1- Clone this repo and run

git clone github.com/wissemb11/vue3-cli-service
  1. change directory
cd vue3-cli-service
  1. 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')

About

A template with minimum requirements based on Vue3 and served by vue-cli-service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published