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

/ 4,481评论 / 22498阅读 / 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. RandallGuesE说道:

    alternative to tamoxifen: does tamoxifen cause menopause – natural alternatives to tamoxifen

  2. RandallGuesE说道:

    get cheap propecia without insurance: cost generic propecia tablets – order propecia without a prescription

  3. RonaldSwobe说道:

    http://nolvadex.life/# aromatase inhibitor tamoxifen

  4. RonaldSwobe说道:

    https://ciprofloxacin.tech/# cipro 500mg best prices

  5. WilliamRen说道:

    https://finasteride.store/# cost of generic propecia without a prescription

  6. Davidfrify说道:

    buy cytotec online buy cytotec Misoprostol 200 mg buy online

  7. RandallGuesE说道:

    antibiotics cipro: cipro for sale – ciprofloxacin mail online

  8. CharlesVox说道:

    Какие радиаторы выбрать для отопления https://propest.ru/kak-vybrat-radiator-dlya-doma.html частного загородного дома – каменного или деревянного: разновидности и классы, правила выбора, цены, сравнения.

  9. Davidfrify说道:

    how does tamoxifen work tamoxifen 20 mg tablet tamoxifen citrate pct

  10. Когда возникли проблемы с моим Lenovo, я нашел отличный сервисный центр – lenovoruremont.ru. Меня впечатлил качеством услуг и компетентностью мастеров. Они быстро продиагностировали проблему и предложили оптимальное решение. Ремонт был выполнен качественно и в срок. Результат превзошел мои ожидания, теперь всем советую обращаться именно сюда для ремонта устройств Lenovo.

  11. Davidfrify说道:

    buy generic ciprofloxacin buy ciprofloxacin buy cipro online without prescription

  12. Davidfrify说道:

    lisinopril tab 100mg lisinopril 250 mg order cheap lisinopril

  13. WilliamRen说道:

    http://ciprofloxacin.tech/# buy cipro online without prescription

  14. RandallGuesE说道:

    buy misoprostol over the counter: order cytotec online – purchase cytotec

  15. WilliamRen说道:

    https://nolvadex.life/# tamoxifen alternatives premenopausal

  16. Davidfrify说道:

    buy cipro online cipro for sale cipro online no prescription in the usa

  17. Davidfrify说道:

    generic propecia pill cost of propecia online order propecia without dr prescription

  18. Uzdhhd说道:

    where to buy digoxin without a prescription – purchase verapamil pills order generic lasix 100mg

  19. RandallGuesE说道:

    cytotec online: cytotec abortion pill – buy cytotec

  20. Davidfrify说道:

    does tamoxifen cause joint pain tamoxifen hot flashes nolvadex estrogen blocker

  21. Davidfrify说道:

    antibiotics cipro ciprofloxacin over the counter cipro pharmacy

  22. WilliamRen说道:

    http://ciprofloxacin.tech/# cipro 500mg best prices

  23. RandallGuesE说道:

    order cytotec online: buy cytotec pills – buy cytotec over the counter

  24. RonaldSwobe说道:

    https://nolvadex.life/# tamoxifen vs raloxifene

  25. RonaldSwobe说道:

    http://lisinopril.network/# lisinopril 10 mg brand name in india

  26. WilliamRen说道:

    http://nolvadex.life/# is nolvadex legal

  27. Scottvaw说道:

    Brands that manufacture chronometer watches
    Understanding COSC Certification and Its Importance in Horology
    COSC Validation and its Stringent Standards
    Controle Officiel Suisse des Chronometres, or the Controle Officiel Suisse des Chronometres, is the official Swiss testing agency that attests to the precision and precision of timepieces. COSC accreditation is a sign of excellent craftsmanship and dependability in chronometry. Not all watch brands seek COSC validation, such as Hublot, which instead follows to its proprietary strict standards with mechanisms like the UNICO, attaining similar accuracy.

    The Art of Exact Chronometry
    The core system of a mechanical watch involves the mainspring, which supplies power as it unwinds. This mechanism, however, can be susceptible to environmental elements that may affect its precision. COSC-certified mechanisms undergo rigorous testing—over fifteen days in various conditions (5 positions, three temperatures)—to ensure their resilience and reliability. The tests assess:

    Mean daily rate precision between -4 and +6 secs.
    Mean variation, highest variation levels, and effects of temperature variations.
    Why COSC Accreditation Matters
    For timepiece fans and collectors, a COSC-accredited watch isn’t just a item of tech but a proof to lasting quality and accuracy. It symbolizes a watch that:

    Offers excellent dependability and accuracy.
    Offers assurance of superiority across the complete construction of the watch.
    Is likely to maintain its worth more efficiently, making it a smart investment.
    Popular Chronometer Brands
    Several well-known brands prioritize COSC accreditation for their timepieces, including Rolex, Omega, Breitling, and Longines, among others. Longines, for instance, presents collections like the Archive and Soul, which highlight COSC-validated mechanisms equipped with advanced substances like silicone equilibrium suspensions to boost resilience and performance.

    Historic Background and the Development of Timepieces
    The notion of the chronometer dates back to the requirement for exact chronometry for navigational at sea, highlighted by John Harrison’s work in the eighteenth cent. Since the official establishment of COSC in 1973, the accreditation has become a standard for assessing the precision of luxury timepieces, continuing a legacy of excellence in watchmaking.

    Conclusion
    Owning a COSC-certified watch is more than an visual selection; it’s a commitment to excellence and accuracy. For those valuing precision above all, the COSC validation provides peace of mind, guaranteeing that each certified watch will function reliably under various circumstances. Whether for individual satisfaction or as an investment decision, COSC-accredited watches stand out in the world of watchmaking, bearing on a tradition of precise chronometry.

  28. Marcelcrolf说道:

    https://canadaph24.pro/# pharmacy wholesalers canada

  29. Pedropaite说道:

    mexico drug stores pharmacies: mexican pharmacy – mexico drug stores pharmacies

  30. JustinTut说道:

    top 10 online pharmacy in india http://indiaph24.store/# buy prescription drugs from india
    best online pharmacy india

  31. JustinTut说道:

    indian pharmacies safe https://indiaph24.store/# online shopping pharmacy india
    indian pharmacy online

  32. Marcelcrolf说道:

    http://indiaph24.store/# buy prescription drugs from india

  33. RickyAlage说道:

    world pharmacy india buy medicines from India п»їlegitimate online pharmacies india

  34. RickyAlage说道:

    top online pharmacy india indian pharmacy Online medicine order

  35. Marcelcrolf说道:

    https://canadaph24.pro/# safe canadian pharmacies

  36. Marcelcrolf说道:

    http://canadaph24.pro/# canadapharmacyonline

  37. RickyAlage说道:

    mexican online pharmacies prescription drugs mexico pharmacy п»їbest mexican online pharmacies

  38. Kvartiry_yhma说道:

    квартиры на сутки https://www.sutki24.by .

  39. RickyAlage说道:

    canadian pharmacy online Certified Canadian Pharmacies canadian pharmacy online store

  40. Pedropaite说道:

    reputable mexican pharmacies online: mexico pharmacy – mexico pharmacy

  41. JustinTut说道:

    top 10 online pharmacy in india https://indiaph24.store/# pharmacy website india
    top online pharmacy india

  42. Scottvaw说道:

    Brands that manufacture chronometer watches
    Understanding COSC Accreditation and Its Importance in Watchmaking
    COSC Certification and its Stringent Criteria
    Controle Officiel Suisse des Chronometres, or the Controle Officiel Suisse des Chronometres, is the authorized Swiss testing agency that verifies the precision and precision of wristwatches. COSC accreditation is a mark of excellent craftsmanship and trustworthiness in timekeeping. Not all watch brands pursue COSC validation, such as Hublot, which instead adheres to its own stringent criteria with movements like the UNICO calibre, attaining equivalent precision.

    The Science of Exact Timekeeping
    The central mechanism of a mechanized timepiece involves the spring, which provides energy as it unwinds. This system, however, can be prone to environmental elements that may affect its accuracy. COSC-validated movements undergo rigorous testing—over fifteen days in various conditions (5 positions, three temperatures)—to ensure their durability and reliability. The tests assess:

    Mean daily rate accuracy between -4 and +6 seconds.
    Mean variation, highest variation levels, and effects of temperature variations.
    Why COSC Validation Matters
    For watch enthusiasts and collectors, a COSC-accredited watch isn’t just a item of tech but a testament to enduring excellence and precision. It represents a timepiece that:

    Presents exceptional reliability and accuracy.
    Ensures guarantee of quality across the entire design of the timepiece.
    Is apt to retain its value more efficiently, making it a sound choice.
    Popular Timepiece Brands
    Several well-known manufacturers prioritize COSC certification for their timepieces, including Rolex, Omega, Breitling, and Longines, among others. Longines, for instance, offers collections like the Archive and Spirit, which feature COSC-accredited mechanisms equipped with advanced materials like silicone equilibrium suspensions to boost resilience and performance.

    Historic Background and the Evolution of Timepieces
    The idea of the chronometer dates back to the need for precise chronometry for navigation at sea, highlighted by John Harrison’s work in the 18th century. Since the official establishment of COSC in 1973, the accreditation has become a benchmark for evaluating the precision of luxury watches, continuing a tradition of superiority in watchmaking.

    Conclusion
    Owning a COSC-accredited watch is more than an visual choice; it’s a commitment to quality and precision. For those appreciating accuracy above all, the COSC accreditation offers peacefulness of thoughts, ensuring that each accredited timepiece will perform reliably under various circumstances. Whether for personal satisfaction or as an investment decision, COSC-certified watches distinguish themselves in the world of watchmaking, maintaining on a tradition of precise chronometry.

  43. Marcelcrolf说道:

    https://mexicoph24.life/# mexican pharmacy

  44. Michaelsew说道:

    http://canadaph24.pro/# buying drugs from canada

  45. JustinTut说道:

    reputable indian online pharmacy http://indiaph24.store/# india pharmacy mail order
    Online medicine home delivery

  46. Pedropaite说道:

    buying prescription drugs in mexico: Online Pharmacies in Mexico – mexican online pharmacies prescription drugs

  47. Michaelsew说道:

    http://mexicoph24.life/# mexican drugstore online

回复 Marcelcrolf 取消回复

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