-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jonghakseo
committed
Jul 15, 2024
1 parent
7ef613c
commit 3947527
Showing
2 changed files
with
1 addition
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,2 @@ | ||
import react from '@vitejs/plugin-react-swc'; | ||
import { watchRebuildPlugin } from '@chrome-extension-boilerplate/hmr'; | ||
|
||
export const isDev = process.env.__DEV__ === 'true'; | ||
export const isProduction = !isDev; | ||
|
||
export default { | ||
base: '', | ||
plugins: [react(), isDev && watchRebuildPlugin({ refresh: true })], | ||
build: { | ||
sourcemap: isDev, | ||
minify: isProduction, | ||
reportCompressedSize: isProduction, | ||
emptyOutDir: true, | ||
rollupOptions: { | ||
external: ['chrome'], | ||
}, | ||
}, | ||
define: { | ||
'process.env.NODE_ENV': isDev ? `"development"` : `"production"`, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './env.mjs'; | ||
export * from 'packages/vite-config/withPageConfig.mjs'; | ||
export * from './withPageConfig.mjs'; |