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

/ 4,021评论 / 17811阅读 / 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. Davidfrify说道:

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

  2. Davidfrify说道:

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

  3. Uzdhhd说道:

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

  4. RandallGuesE说道:

    cytotec online: cytotec abortion pill – buy cytotec

  5. Davidfrify说道:

    does tamoxifen cause joint pain tamoxifen hot flashes nolvadex estrogen blocker

  6. Davidfrify说道:

    antibiotics cipro ciprofloxacin over the counter cipro pharmacy

  7. WilliamRen说道:

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

  8. RandallGuesE说道:

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

  9. RonaldSwobe说道:

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

  10. RonaldSwobe说道:

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

  11. WilliamRen说道:

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

  12. 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.

  13. Marcelcrolf说道:

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

  14. Pedropaite说道:

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

  15. JustinTut说道:

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

  16. JustinTut说道:

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

  17. Marcelcrolf说道:

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

  18. RickyAlage说道:

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

  19. RickyAlage说道:

    top online pharmacy india indian pharmacy Online medicine order

  20. Marcelcrolf说道:

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

  21. Marcelcrolf说道:

    http://canadaph24.pro/# canadapharmacyonline

  22. RickyAlage说道:

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

  23. Kvartiry_yhma说道:

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

  24. RickyAlage说道:

    canadian pharmacy online Certified Canadian Pharmacies canadian pharmacy online store

  25. Pedropaite说道:

    reputable mexican pharmacies online: mexico pharmacy – mexico pharmacy

  26. JustinTut说道:

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

  27. 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.

  28. Marcelcrolf说道:

    https://mexicoph24.life/# mexican pharmacy

  29. Michaelsew说道:

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

  30. JustinTut说道:

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

  31. Pedropaite说道:

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

  32. Michaelsew说道:

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

回复 נערות ליווי באילת 取消回复

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