Skip to content

Commit

Permalink
vite の設定変更
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Dec 15, 2024
1 parent bea0ac8 commit 21ee254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { resolve } from 'node:path'
import { defineConfig } from 'vite'

export default defineConfig({
root: resolve(__dirname),
base: process.env.NODE_ENV === 'production' ? '/media-processors/' : '/',
resolve: {
preserveSymlinks: true,
Expand Down Expand Up @@ -53,7 +54,7 @@ export default defineConfig({
},
},
},
envDir: resolve(__dirname, './'),
envDir: resolve(__dirname, '..'),
plugins: [
viteStaticCopy({
targets: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"author": "Shiguredo Inc.",
"license": "Apache-2.0",
"scripts": {
"dev": "vite --config examples/vite.config.mjs",
"build": "pnpm -r --filter=./packages/* build",
"lint": "pnpm -r --filter=./packages/* lint",
"fmt": "pnpm -r --filter=./packages/* fmt",
Expand Down

0 comments on commit 21ee254

Please sign in to comment.