-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild-dev.ts
More file actions
31 lines (30 loc) · 831 Bytes
/
build-dev.ts
File metadata and controls
31 lines (30 loc) · 831 Bytes
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
// custom_build.ts
import { build } from "vite";
import monkey from "vite-plugin-monkey";
// @ts-ignore
import path from "path";
// @ts-ignore
await build({
configFile: false,
resolve: {
alias: {
src: path.resolve("./src"),
},
},
plugins: [
monkey({
entry: "src/inject-moosocket.ts",
userscript: {
name: "moolite-dev",
icon: "https://www.milkywayidle.com/favicon.svg",
description: "Injecting the MooSocket",
"run-at": "document-start",
namespace: "123ishaTest",
match: ["*://*www.milkywayidle.com/*", "*://*test.milkywayidle.com/*"],
},
build: {
fileName: "moolite-dev.user.js",
},
}),
],
});