From 7fd904843990ace2d1a4c9824e016c492ce5e432 Mon Sep 17 00:00:00 2001 From: deguchi Date: Wed, 30 Mar 2022 14:49:02 +0900 Subject: [PATCH] update --- package.json | 2 +- vite.config.build.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 vite.config.build.ts diff --git a/package.json b/package.json index 239181c..0a253aa 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "homepage": "https://github.com/CALIL/hiradumi#readme", "scripts": { "start": "vite --open", - "build": "tsc && vite build", + "build": "tsc && vite build --config ./vite.config.build.ts", "serve": "vite preview", "compile": "webpack", "prepublishOnly": "npm run compile" diff --git a/vite.config.build.ts b/vite.config.build.ts new file mode 100644 index 0000000..6db1a00 --- /dev/null +++ b/vite.config.build.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'vite' +import reactRefresh from '@vitejs/plugin-react-refresh' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [reactRefresh()], + base: '/hiradumi/', +}) \ No newline at end of file