Skip to content

Commit

Permalink
chore: adjust Vite configuration Fix #160
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaidr committed Dec 28, 2024
1 parent bc96837 commit 73b824a
Show file tree
Hide file tree
Showing 6 changed files with 659 additions and 9 deletions.
629 changes: 629 additions & 0 deletions chrome/src/types/auto-imports.d.ts

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions chrome/src/types/components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-disable */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}

/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
IPhArrowLeft: typeof import('~icons/ph/arrow-left')['default']
IPhListHeart: typeof import('~icons/ph/list-heart')['default']
IPhPresentationChart: typeof import('~icons/ph/presentation-chart')['default']
IPhRocketLaunch: typeof import('~icons/ph/rocket-launch')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"chalk": "^5.4.1",
"chrome-types": "^0.1.327",
"commander": "^12.1.0",
"concurrently": "^9.1.0",
"concurrently": "^9.1.1",
"cross-env": "^7.0.3",
"daisyui": "^4.12.23",
"dotenv": "^16.4.7",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vite.chrome.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ if (!ViteConfig.plugins) {
}

ViteConfig.build.outDir = browserOutDir
ViteConfig.base = IS_DEV
? `http://localhost:${ViteConfig.server?.port}/`
: `/dist/${browser}`
// ViteConfig.base = IS_DEV
// ? `http://localhost:${ViteConfig.server?.port}/`
// : `/dist/${browser}`

ViteConfig.plugins.unshift(
crx({
Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ export default defineConfig({
],

build: {
manifest: false,
outDir: "dist",
sourcemap: false,
write: true,
rollupOptions: {
// ui or pages that are not specified in manifest file need to be specified here
input: {
Expand Down

0 comments on commit 73b824a

Please sign in to comment.