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

/ 13,815评论 / 51366阅读 / 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. видеостена для конференц зала http://videosteny-pod-kljuch.ru/ .

  2. Dnrtfic说道:

    Здравствуйте!
    Купить документ института можно у нас в Москве.
    diplomyx24.ru/kupit-diplom-sankt-peterburg
    Успешной учебы!

  3. Arnoldscava说道:

    pharmacies in mexico that ship to usa mexican rx online buying prescription drugs in mexico online

  4. NelsonSaIlk说道:

    buying prescription drugs in mexico online: reputable mexican pharmacies online – mexican online pharmacies prescription drugs

  5. Waynetar说道:

    mexican border pharmacies shipping to usa: mexico pharmacies prescription drugs – medication from mexico pharmacy

  6. Arnoldscava说道:

    п»їbest mexican online pharmacies mexico drug stores pharmacies mexico pharmacy

  7. DominicHOr说道:

    buying prescription drugs in mexico online: mexican drugstore online – medication from mexico pharmacy

  8. Waynetar说道:

    buying prescription drugs in mexico online: mexican mail order pharmacies – mexican mail order pharmacies

  9. Lazrnxi说道:

    Здравствуйте!
    Купить диплом о высшем образовании.
    rugladyseminars.com/cb-profile/pluginclass/cbblogs?action=blogs&func=show&id=399

  10. DominicHOr说道:

    buying from online mexican pharmacy: mexican border pharmacies shipping to usa – best online pharmacies in mexico

  11. Dnrtkdp说道:

    Добрый день!
    Купить документ о получении высшего образования можно в нашей компании.
    diploms-x.com/kupit-diplom-sankt-peterburg
    Успешной учебы!

  12. Trefgpp说道:

    Добрый день!
    Легальные способы покупки диплома о среднем полном образовании
    kabtaferplus.com/купить-диплом-советы-и-рекомендации
    Будем рады вам помочь!.

  13. Arnoldscava说道:

    best online pharmacies in mexico mexico pharmacy best online pharmacies in mexico

  14. Mazrkfs说道:

    Привет, друзья!
    Как приобрести диплом техникума с минимальными рисками
    mans-diplomxx.ru

  15. Arnoldscava说道:

    medicine in mexico pharmacies buying prescription drugs in mexico mexican pharmacy

  16. Waynetar说道:

    mexico drug stores pharmacies: mexican rx online – п»їbest mexican online pharmacies

  17. DominicHOr说道:

    reputable mexican pharmacies online: buying prescription drugs in mexico – mexico drug stores pharmacies

  18. NelsonSaIlk说道:

    mexican pharmaceuticals online: medication from mexico pharmacy – mexican drugstore online

  19. Mazruzn说道:

    Добрый день!
    Приобрести документ ВУЗа вы сможете у нас в столице. Мы оказываем услуги по производству и продаже документов об окончании любых ВУЗов России. Вы получите диплом по любой специальности, включая документы образца СССР. Гарантируем, что при проверке документа работодателями, подозрений не возникнет.
    Мы можем предложить дипломы любых профессий по приятным ценам. Стоимость будет зависеть от выбранной специальности, года получения и образовательного учреждения. Стараемся поддерживать для заказчиков адекватную ценовую политику. Важно, чтобы документы были доступными для подавляющей массы наших граждан.
    onlinekinofun.ru/diplom-po-vashemu-vyiboru-vasha-garantiya-uspeshnogo-budushhego
    Будем рады вам помочь!

  20. Arnoldscava说道:

    medication from mexico pharmacy mexico pharmacies prescription drugs medicine in mexico pharmacies

  21. Uazrtof说道:

    Добрый день!
    Заказать диплом о высшем образовании.
    1776reloaded.us/blogs/63/Купить-диплом-быстро-и-надежно

  22. Diplomi_eeSa说道:

    купить диплом ссср в челябинске mandiplomik.ru .

  23. NelsonSaIlk说道:

    mexico pharmacies prescription drugs: mexican mail order pharmacies – medication from mexico pharmacy

  24. Mazrfai说道:

    Привет!
    Полезные советы по покупке диплома о высшем образовании без риска
    mandiplomiks.ru

  25. Lazroyc说道:

    Привет, друзья!
    Купить диплом университета.
    rkiyosaki.ru/discussion/9668/obshirnyy-assortiment-dokumentov-v-znamenitom-onlaynmagazine

  26. Trefjja说道:

    Привет!
    Полезная информация как официально купить диплом о высшем образовании
    mycryptonewzhub.com/диплом-купить-где-и-как
    Будем рады вам помочь!.

  27. Lazrqip说道:

    Привет, друзья!
    Мы можем предложить дипломы психологов, юристов, экономистов и прочих профессий по приятным ценам.
    autogroupe.ru/poluchite-diplom-bez-lishnih-usiliy

  28. NelsonSaIlk说道:

    mexico drug stores pharmacies: buying from online mexican pharmacy – mexico drug stores pharmacies

  29. Waynetar说道:

    best online pharmacies in mexico: mexican rx online – mexican mail order pharmacies

  30. DominicHOr说道:

    mexican online pharmacies prescription drugs: mexican drugstore online – mexico drug stores pharmacies

  31. Arnoldscava说道:

    mexican pharmacy purple pharmacy mexico price list mexico pharmacy

  32. Tooft说道:

    Kashmir voters are expected to show their discontent with Modi’s cancellation of the region’s special status in 2019. Glimpses of revellers battling each other with flour and eggs during the Els Enfarinats… We face big challenges to help the world’s poorest people and ensure that everyone sees benefits from economic growth. Data and research help us understand these challenges and set priorities, share knowledge of what works, and measure progress. Holocaust dramas are everywhere. But they rarely connect with the present With Times Prime, you can avail 1-quarterly of TOI Plus Newspaper subscription worth Rs.699 for free. If you are struggling with constant ad interruptions, pop-ups for multiple subscriptions, and notifications that urge you to buy a newspaper or a magazine subscription online, then Times Prime has got your back. With this membership, you easily get a complimentary subscription to TOI Plus, where you can read the news by top journalists, articles, and other insightful content without any ad interruption.
    https://collinaczu495173.blogs-service.com/58743142/tv5-news
    2:47 PM, Mar 28, 2023 #Celtics still have no idea how to stop Evan Mobley on the pick-and-roll, and if he isn’t scoring, Marcus Morris is hitting improbable threes. BOS 90 CLE 85 with 9:10 left. #Cavaliers The annual Goldin 100 auction offers the top 100 collectibles from around the world. Goldin CEO and founder Ken Goldin shared details with Fox News Digital of some of the most valuable finds. First observations on #Bengals schedule: * Five primetime games (Two TNF) * One primetime road divisional game (Baltimore TNF) * Favorable first six weeks * Later bye week (Week 12) * Eight primetime spotlight games (Three at 4:25) * Week 7-Week 14 crucial stretch@fox19 Charles Barkley: @cavs have “no chance” tonight, “we should switch over to the draft combine”#letemknow #nbaplayoffs @cleveland19news

  33. NelsonSaIlk说道:

    medication from mexico pharmacy: best online pharmacies in mexico – best online pharmacies in mexico

  34. Mazrffe说道:

    Здравствуйте!
    Сколько стоит диплом высшего и среднего образования и как это происходит?
    mans-diplomas.ru

  35. Waynetar说道:

    mexican mail order pharmacies: mexican drugstore online – mexican mail order pharmacies

  36. Arnoldscava说道:

    mexico drug stores pharmacies mexican pharmaceuticals online buying prescription drugs in mexico

  37. Edwardpex说道:

    Синергель https://sinergels.ru состав препарата и инструкция по применению. Показания и противопоказания.

  38. Diplomi_fcol说道:

    Привет!
    Приобрести документ ВУЗа можно у нас.
    ast-diploms.com/kupit-diplom-chelyabinsk

  39. Waynetar说道:

    medicine in mexico pharmacies: mexican pharmaceuticals online – buying prescription drugs in mexico

  40. DominicHOr说道:

    mexican online pharmacies prescription drugs: medication from mexico pharmacy – pharmacies in mexico that ship to usa

  41. Diplomi_ejol说道:

    Добрый день!
    Заказать документ института вы сможете у нас в столице.
    diplomasx.com/kupit-diplom-bakalavra-ili-specialista

  42. Arnoldscava说道:

    mexican drugstore online mexico pharmacy mexican drugstore online

发表回复

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