Merge commit '3540becf6f657ee6ab820f18c63b3b59c4f54c25' into feature-auto-lookup

This commit is contained in:
Mouriya
2024-07-02 12:17:07 +09:00
2 changed files with 5 additions and 8 deletions

View File

@@ -8,12 +8,10 @@
"watch": "vite build --watch --mode dev", "watch": "vite build --watch --mode dev",
"server": "vite dev --mode dev", "server": "vite dev --mode dev",
"ngrok": "ngrok http 4173", "ngrok": "ngrok http 4173",
"build": "run-s b:production copy:windows", "build": "run-s b:production copy:windows",
"build:dev": "run-s b:dev copy:windows", "build:dev": "run-s b:dev copy:windows",
"build:linux": "run-s b:production copy:linux", "build:linux": "run-s b:production copy:linux",
"build:linux-dev": "run-s b:dev copy:linux", "build:linux-dev": "run-s b:dev copy:linux",
"b:production": "vite build --mode production", "b:production": "vite build --mode production",
"b:dev": "vite build --mode dev", "b:dev": "vite build --mode dev",
"copy:windows": "xcopy dist\\*.js ..\\..\\backend\\Temp\\ /E /I /Y", "copy:windows": "xcopy dist\\*.js ..\\..\\backend\\Temp\\ /E /I /Y",
@@ -26,11 +24,10 @@
"sass": "^1.69.5", "sass": "^1.69.5",
"typescript": "^5.0.2", "typescript": "^5.0.2",
"vite": "^4.4.5", "vite": "^4.4.5",
"vite-plugin-checker": "^0.6.4" "vite-plugin-checker": "^0.6.4",
"vite-plugin-lib-inject-css": "^2.1.1"
}, },
"dependencies": { "dependencies": {
"jquery": "^3.7.1", "jquery": "^3.7.1"
"vite-plugin-css-injected-by-js": "^3.5.1",
"yarn": "^1.22.22"
} }
} }

View File

@@ -1,7 +1,7 @@
// vite.config.js // vite.config.js
import { defineConfig, loadEnv } from "vite"; import { defineConfig, loadEnv } from "vite";
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
import checker from "vite-plugin-checker"; import checker from "vite-plugin-checker";
import { libInjectCss } from 'vite-plugin-lib-inject-css';
export default ({ mode }) => { export default ({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) }; process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
@@ -11,7 +11,7 @@ export default ({ mode }) => {
checker({ checker({
typescript: true, typescript: true,
}), }),
cssInjectedByJsPlugin(), libInjectCss(),
], ],
build: { build: {
cssCodeSplit: false, cssCodeSplit: false,