摘要:
一、安装依赖 npm install sass-embedded 二、配置全局变量 1、新建文件 src/styles/variables.scss 2、配置Vite 修改 vite.config.js css: { preprocessorOptions: { scss: { additional 阅读全文
posted @ 2025-03-22 17:21
市丸银
阅读(861)
评论(0)
推荐(0)
摘要:
一、自定义插件 参考: 1、创建 src/components/index.ts 2、内容 import SvgIcon from './SvgIcon.vue' // 全部全局组件 const allGloablComponent = { SvgIcon, } export default { i 阅读全文
posted @ 2025-03-22 16:41
市丸银
阅读(188)
评论(0)
推荐(0)
摘要:
一、新建文件 .env.development .env.production .env.test 开发、生产、测试 二、文件内容 1、开发 # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'development' VITE_APP_TITLE = 'developme 阅读全文
posted @ 2025-03-22 11:13
市丸银
阅读(133)
评论(0)
推荐(0)
摘要:
一、SVG图标配置 1、安装依赖 npm install vite-plugin-svg-icons 2、在vite.config.ts中配置插件 import { fileURLToPath, URL } from 'node:url' import VueSetupExtend from 'vi 阅读全文
posted @ 2025-03-22 10:54
市丸银
阅读(286)
评论(0)
推荐(0)
摘要:
1、文件 vite.config.ts 2、注释 阅读全文
posted @ 2025-03-22 09:48
市丸银
阅读(478)
评论(0)
推荐(0)
摘要:
1、安装 npm i -g pnpm 2、创建项目 pnpm create vite 阅读全文
posted @ 2025-03-22 08:20
市丸银
阅读(53)
评论(0)
推荐(0)

浙公网安备 33010602011771号