Skip to content

Commit 4c9d60a

Browse files
author
li-guohao
committedJun 1, 2023
fix: console can not build normally
1 parent 4f97f00 commit 4c9d60a

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed
 

‎.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ downloads/
4444
database/
4545
tripartite/
4646
original/
47-
plugins/
47+
plugins/
48+
49+
### Console Build ###
50+
src/main/resources/console/

‎console/index.html

-13
This file was deleted.

‎console/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"devDependencies": {
1515
"@vitejs/plugin-vue": "^4.1.0",
1616
"@vitejs/plugin-vue-jsx": "^3.0.1",
17+
"@types/node": "^16.18.0",
1718
"typescript": "^5.0.2",
1819
"vite": "^4.3.9",
1920
"vue-tsc": "^1.4.2"

‎console/pnpm-lock.yaml

+12-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎console/public/vite.svg

-1
This file was deleted.

‎console/src/index.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
export default definePlugin({
2-
components: {},
3-
routes: [],
4-
extensionPoints: {},
5-
});
1+
// export default definePlugin({
2+
// components: {},
3+
// routes: [],
4+
// extensionPoints: {},
5+
// });
6+
console.log('Hello Ikaros')

‎console/vite.config.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from 'vite'
2+
import { fileURLToPath, URL } from "url";
23
import Vue from "@vitejs/plugin-vue";
34
import VueJsx from "@vitejs/plugin-vue-jsx";
45

@@ -21,11 +22,11 @@ export default defineConfig({
2122
entry: "src/index.ts",
2223
name: pluginEntryName,
2324
formats: ["iife"],
24-
fileName: () => "main.js",
25+
fileName: () => "index.js",
2526
},
2627
},
27-
rollupOptions: {
28-
external: [],
29-
output: {}
30-
}
28+
// rollupOptions: {
29+
// external: [],
30+
// output: {}
31+
// }
3132
})

0 commit comments

Comments
 (0)
Please sign in to comment.