@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
<title>UTRP Options</title>
|
<title>Popup</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export default function PopupMain(): JSX.Element {
|
|||||||
));
|
));
|
||||||
|
|
||||||
const handleOpenOptions = async () => {
|
const handleOpenOptions = async () => {
|
||||||
const url = chrome.runtime.getURL('/options.html');
|
const url = chrome.runtime.getURL('/src/pages/options/index.html');
|
||||||
await openTabFromContentScript(url);
|
await openTabFromContentScript(url);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -155,10 +155,6 @@ export default defineConfig({
|
|||||||
target: 'http://localhost:5173',
|
target: 'http://localhost:5173',
|
||||||
rewrite: path => path.replace('calendar', 'src/pages/calendar/index'),
|
rewrite: path => path.replace('calendar', 'src/pages/calendar/index'),
|
||||||
},
|
},
|
||||||
'/options.html': {
|
|
||||||
target: 'http://localhost:5173',
|
|
||||||
rewrite: path => path.replace('options', 'src/pages/options/index'),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
@@ -166,7 +162,6 @@ export default defineConfig({
|
|||||||
input: {
|
input: {
|
||||||
debug: 'src/pages/debug/index.html',
|
debug: 'src/pages/debug/index.html',
|
||||||
calendar: 'src/pages/calendar/index.html',
|
calendar: 'src/pages/calendar/index.html',
|
||||||
options: 'src/pages/options/index.html',
|
|
||||||
},
|
},
|
||||||
// output: {
|
// output: {
|
||||||
// entryFileNames: `[name].js`, // otherwise it will add the hash
|
// entryFileNames: `[name].js`, // otherwise it will add the hash
|
||||||
|
|||||||
Reference in New Issue
Block a user