-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
37 lines (35 loc) · 1.23 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from "vite";
import path from "path";
import pkg from "./package.json";
const BANNER = `/* eslint-disable */
// ==UserScript==
// @name ${pkg.name}
// @name:zh-CN ${pkg.name}
// @namespace ${pkg.repository}
// @version ${pkg.version}
// @license ${pkg.license}
// @author ${pkg.author}
// @updateURL https://palmcivet.github.io/${pkg.repository}/main.js
// @description ${pkg.name} is a versatile script designed to enhance your Figma experience by allowing you to reposition the toolbelt with ease.
// @description:zh-CN ${pkg.name} 是一个用于增强 Figma 体验的脚本,可以轻松地将工具栏调整到想要的位置。
// @match https://www.figma.com/design/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// ==/UserScript==`;
export default defineConfig({
esbuild: {
banner: BANNER,
},
build: {
minify: false,
lib: {
name: "adjust",
formats: ["iife"],
fileName: () => `main.js`,
entry: path.resolve(__dirname, "src/main.ts"),
},
},
});