🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@yuo/vite

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yuo/vite

Native-ESM powered web dev build tool

Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
14
100%
Maintainers
2
Weekly downloads
 
Created
Source

vite ⚡

Next Generation Frontend Tooling

增加了css-module变量注入默认注入class的功能,但是对写法上也有了更严格的要求。

基于 vite@2.9.9

vue的sfc文件顶层标签必须换行(本来也应该换行)

<template>
  <div class="test"></div>
  <!-- <div :class="$style.test"></div> -->
</template>

<script lang="ts" setup></script>

<style lang="scss" module>
.test { color: red; }

/* 全局的test类可以被覆盖修改 */
:global .test {
  margin: 12px;
}
</style>

<script></script>

<custom></custom>
  • 💡 Instant Server Start
  • ⚡️ Lightning Fast HMR
  • 🛠️ Rich Features
  • 📦 Optimized Build
  • 🔩 Universal Plugin Interface
  • 🔑 Fully Typed APIs

FAQs

Package last updated on 12 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts