mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
chore: vite conf changes
This commit is contained in:
parent
89c1ddd27c
commit
46dbd33b4e
1 changed files with 9 additions and 6 deletions
|
@ -23,9 +23,9 @@ const extensions = [
|
||||||
];
|
];
|
||||||
|
|
||||||
export default defineConfig(({ command, mode }) => {
|
export default defineConfig(({ command, mode }) => {
|
||||||
fs.mkdirSync(__dirname + "/../../built", { recursive: true });
|
fs.mkdirSync(`${__dirname}/../../built`, { recursive: true });
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
__dirname + "/../../built/meta.json",
|
`${__dirname}/../../built/meta.json`,
|
||||||
JSON.stringify({ version: meta.version }),
|
JSON.stringify({ version: meta.version }),
|
||||||
"utf-8",
|
"utf-8",
|
||||||
);
|
);
|
||||||
|
@ -40,15 +40,16 @@ export default defineConfig(({ command, mode }) => {
|
||||||
pluginJson5(),
|
pluginJson5(),
|
||||||
viteCompression({
|
viteCompression({
|
||||||
algorithm: "brotliCompress",
|
algorithm: "brotliCompress",
|
||||||
|
verbose: false,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions,
|
extensions,
|
||||||
alias: {
|
alias: {
|
||||||
"@/": __dirname + "/src/",
|
"@/": `${__dirname}/src/`,
|
||||||
"/client-assets/": __dirname + "/assets/",
|
"/client-assets/": `${__dirname}/assets/`,
|
||||||
"/static-assets/": __dirname + "/../backend/assets/",
|
"/static-assets/": `${__dirname}/../backend/assets/`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ export default defineConfig(({ command, mode }) => {
|
||||||
},
|
},
|
||||||
cssCodeSplit: true,
|
cssCodeSplit: true,
|
||||||
assetsInlineLimit: 0,
|
assetsInlineLimit: 0,
|
||||||
outDir: __dirname + "/../../built/_client_dist_",
|
outDir: `${__dirname}/../../built/_client_dist_`,
|
||||||
assetsDir: ".",
|
assetsDir: ".",
|
||||||
emptyOutDir: false,
|
emptyOutDir: false,
|
||||||
sourcemap: process.env.NODE_ENV === "development",
|
sourcemap: process.env.NODE_ENV === "development",
|
||||||
|
@ -94,5 +95,7 @@ export default defineConfig(({ command, mode }) => {
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
auto: true,
|
auto: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
logLevel: 'warn',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue