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

/ 4,003评论 / 17743阅读 / 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. RickyAlage说道:

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

  2. RickyAlage说道:

    top online pharmacy india indian pharmacy Online medicine order

  3. Marcelcrolf说道:

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

  4. Marcelcrolf说道:

    http://canadaph24.pro/# canadapharmacyonline

  5. RickyAlage说道:

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

  6. Kvartiry_yhma说道:

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

  7. RickyAlage说道:

    canadian pharmacy online Certified Canadian Pharmacies canadian pharmacy online store

  8. Pedropaite说道:

    reputable mexican pharmacies online: mexico pharmacy – mexico pharmacy

  9. JustinTut说道:

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

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

  11. Marcelcrolf说道:

    https://mexicoph24.life/# mexican pharmacy

  12. Michaelsew说道:

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

  13. JustinTut说道:

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

  14. Pedropaite说道:

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

  15. Michaelsew说道:

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

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

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