-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts.timestamp-1719666703681-4e5bc81e173c.mjs
113 lines (109 loc) · 9.9 KB
/
vite.config.ts.timestamp-1719666703681-4e5bc81e173c.mjs
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// vite.config.ts
import { defineConfig } from "file:///Users/davidnorman/Hypercatcher/hypercatcher-extension/hypercatcher-extension/node_modules/vite/dist/node/index.js";
import { crx } from "file:///Users/davidnorman/Hypercatcher/hypercatcher-extension/hypercatcher-extension/node_modules/@crxjs/vite-plugin/dist/index.mjs";
import react from "file:///Users/davidnorman/Hypercatcher/hypercatcher-extension/hypercatcher-extension/node_modules/@vitejs/plugin-react/dist/index.mjs";
// src/manifest.ts
import { defineManifest } from "file:///Users/davidnorman/Hypercatcher/hypercatcher-extension/hypercatcher-extension/node_modules/@crxjs/vite-plugin/dist/index.mjs";
// package.json
var package_default = {
name: "Hypercatcher-ChapterSync",
displayName: "Hypercatcher Extension",
version: "0.0.5",
author: "David Norman",
description: "",
type: "module",
license: "MIT",
keywords: [
"hypercatcher",
"podcast",
"chapters"
],
engines: {
node: ">=14.18.0"
},
scripts: {
dev: "vite",
build: "tsc && vite build",
preview: "vite preview",
fmt: "prettier --write '**/*.{tsx,ts,json,css,scss,md}'",
watch: "./watch-and-build.sh"
},
dependencies: {
react: "^18.2.0",
"react-dom": "^18.2.0"
},
devDependencies: {
"@crxjs/vite-plugin": "^2.0.0-beta.19",
"@types/chrome": "^0.0.246",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"@vitejs/plugin-react": "^4.1.0",
prettier: "^3.0.3",
typescript: "^5.2.2",
vite: "^4.4.11"
}
};
// src/manifest.ts
var manifest_default = defineManifest({
name: package_default.name,
description: package_default.description,
version: package_default.version,
manifest_version: 3,
icons: {
16: "img/logo-16.png",
32: "img/logo-34.png",
48: "img/logo-48.png",
128: "img/logo-128.png"
},
action: {
default_popup: "popup.html",
default_icon: "img/logo-48.png"
},
// options_page: 'options.html',
// devtools_page: 'devtools.html',
background: {
service_worker: "src/background/index.ts",
type: "module"
},
content_scripts: [
{
matches: [
"*://*.rssblue.com/*",
"*://podcasters.spotify.com/*",
"*://*.buzzsprout.com/*",
"*://publish.blubrry.com/*"
],
js: ["src/contentScript/hcindex.ts"]
}
],
// side_panel: {
// default_path: 'sidepanel.html',
// },
web_accessible_resources: [
{
resources: ["img/logo-16.png", "img/logo-34.png", "img/logo-48.png", "img/logo-128.png"],
matches: []
}
],
permissions: ["storage", "activeTab", "tabs", "contextMenus", "notifications"]
// 'sidePanel'
});
// vite.config.ts
var vite_config_default = defineConfig(({ mode }) => {
return {
build: {
emptyOutDir: true,
outDir: "build",
rollupOptions: {
output: {
chunkFileNames: "assets/chunk-[hash].js"
}
}
},
plugins: [crx({ manifest: manifest_default }), react()]
};
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAic3JjL21hbmlmZXN0LnRzIiwgInBhY2thZ2UuanNvbiJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2Rpcm5hbWUgPSBcIi9Vc2Vycy9kYXZpZG5vcm1hbi9IeXBlcmNhdGNoZXIvaHlwZXJjYXRjaGVyLWV4dGVuc2lvbi9oeXBlcmNhdGNoZXItZXh0ZW5zaW9uXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvVXNlcnMvZGF2aWRub3JtYW4vSHlw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