Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3.0 初期設定 #2

Open
jiyuujin opened this issue May 18, 2020 · 4 comments
Open

Vue3.0 初期設定 #2

jiyuujin opened this issue May 18, 2020 · 4 comments

Comments

@jiyuujin
Copy link
Owner

jiyuujin commented May 18, 2020

概要

Vue 2.x と比べがらっと変わる!

yarn add vue@next vue-router@next
yarn add @vue/test-utils@next vue-cli-plugin-vue-next -D

エントリーポイントの作成

import { createApp } from 'vue'
import App from './App'

// `vue-router` を使う場合
import router from './router'

const app = createApp(App)

app.use(router)

app.mount('#app')

vue-router 初期設定

import { createRouter, createWebHistory } from 'vue-router'

import HelloWorld from '../components/HelloWorld'

const routes = [
  {
    path: '/',
    name: 'HelloWorld',
    component: HelloWorld
  }
]

const router = createRouter({
  history: createWebHistory(),
  linkActiveClass: 'active',
  routes
})

export default router
@jiyuujin jiyuujin added this to In progress in jiyuujin 2020 Product issues May 18, 2020
@jiyuujin
Copy link
Owner Author

jiyuujin commented Jul 1, 2020

Announce is out

vuejs/rfcs#183

@jiyuujin
Copy link
Owner Author

jiyuujin commented Jul 19, 2020

rc is out

vuejs/rfcs#189

Experimental

  • <Suspense>
  • <script setup>
  • <style vars>

@jiyuujin
Copy link
Owner Author

jiyuujin commented Aug 1, 2020

You can confirm in #4 exclude unit test

@jiyuujin
Copy link
Owner Author

jiyuujin commented Aug 1, 2020

@jiyuujin jiyuujin added the vue label Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant