Skip to content

Commit

Permalink
Delete: 使われてない定数を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Mar 25, 2024
1 parent e9f2d4c commit afb309c
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="vitest" />
import path from "path";
import { rm, readdir, readFile } from "fs/promises";
import { rm } from "fs/promises";
import treeKill from "tree-kill";

import electron from "vite-plugin-electron";
Expand Down Expand Up @@ -37,19 +37,6 @@ export default defineConfig(async (options) => {
const sourcemap: BuildOptions["sourcemap"] = shouldEmitSourcemap
? "inline"
: false;
const themes = await readdir(path.resolve(__dirname, "public/themes")).then(
(files) =>
Promise.all(
files.map(async (themeFile: string) => {
return JSON.parse(
await readFile(
path.resolve(__dirname, "public/themes", themeFile),
"utf-8"
)
);
})
)
);
return {
root: path.resolve(__dirname, "src"),
envDir: __dirname,
Expand Down Expand Up @@ -86,9 +73,6 @@ export default defineConfig(async (options) => {
],
globals: true,
},
define: {
__availableThemes: JSON.stringify(themes),
},

plugins: [
vue(),
Expand Down

0 comments on commit afb309c

Please sign in to comment.