[vue/vite]在vscode中使用vite手动创建vue项目

/ 4,169评论 / 21697阅读 / 14点赞

* vite是什么?

* 一个前端的开发构建工具

* 当我们的项目组件变大时,会自觉的分文件、分组件等操作,缩减单文件的大小、增加可维护性,vite则可以帮我们管理,并且它有很多插件帮助我们开发。

初始化

安装vite依赖

安装vue的依赖

创建index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>标题</title>
</head>
<body>
    <!-- 引用的js文件位置 -->
    <script type="module" src=""></script>
</body>
</html>

创建main.js

    <!-- 引用的js文件 -->
    <script type="module" src="./src/main.js"></script>

尝试让它跑起来(1)

创建App.vue

<template>
    <div>
        你好 coolight
    </div>
</template>

在main.js中创建vue,安装vitejs

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

const app = createApp(App)

app.mount('#app')
import { defineConfig } from "vite"
import Vue from "@vitejs/plugin-vue"

export default defineConfig({
    plugins:[
        Vue()
    ]
})

结语

  1. WilliamRen说道:

    https://ciprofloxacin.tech/# ciprofloxacin 500 mg tablet price

  2. RonaldSwobe说道:

    https://finasteride.store/# order cheap propecia tablets

  3. WilliamRen说道:

    https://finasteride.store/# buying cheap propecia online

  4. RandallGuesE说道:

    cost of lisinopril 2.5 mg: lisinopril 10 mg daily – lisinopril 5 mg price

  5. Davidfrify说道:

    nolvadex pills how to get nolvadex tamoxifen rash pictures

  6. RandallGuesE说道:

    lisinopril comparison: lisinopril 20 mg pill – buying lisinopril online

  7. Davidfrify说道:

    tamoxifen for men tamoxifen men tamoxifen buy

  8. RandallGuesE说道:

    ciprofloxacin generic price: cipro generic – ciprofloxacin mail online

  9. RonaldSwobe说道:

    http://nolvadex.life/# nolvadex during cycle

  10. WilliamRen说道:

    http://finasteride.store/# buying generic propecia tablets

  11. Dennisdrync说道:

    Компания КЗТО https://radiators-teplo.github.io/ известна производством высококачественных радиаторов, которые обеспечивают эффективное отопление и долговечность. Продукция КЗТО включает радиаторы различных модификаций, подходящие для любых помещений. Они изготавливаются из прочных материалов, что гарантирует устойчивость к коррозии и высокую теплоотдачу.

  12. Vybxet说道:

    hydrochlorothiazide oral – buy cheap bisoprolol buy generic bisoprolol

  13. WilliamRen说道:

    https://lisinopril.network/# lisinopril 80mg tablet

  14. RandallGuesE说道:

    zestril price uk: lisinopril from canada – lisinopril 20mg 37.5mg

  15. WilliamRen说道:

    http://finasteride.store/# cost propecia for sale

  16. Davidfrify说道:

    tamoxifen and osteoporosis benefits of tamoxifen should i take tamoxifen

  17. Davidfrify说道:

    order propecia without rx cheap propecia prices get generic propecia without rx

  18. RandallGuesE说道:

    order propecia no prescription: order cheap propecia without insurance – buy propecia tablets

  19. Davidfrify说道:

    Misoprostol 200 mg buy online cytotec pills buy online Misoprostol 200 mg buy online

  20. Davidfrify说道:

    buy generic ciprofloxacin ciprofloxacin generic price buy cipro online canada

  21. RandallGuesE说道:

    propecia brand name: get cheap propecia without insurance – cost propecia price

  22. RandallGuesE说道:

    cytotec buy online usa: cytotec abortion pill – cytotec buy online usa

  23. WilliamRen说道:

    http://nolvadex.life/# tamoxifenworld

  24. WilliamRen说道:

    https://ciprofloxacin.tech/# where can i buy cipro online

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注