Skip to content

Commit

Permalink
revert(frontend): manual chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Dec 17, 2024
1 parent beef3f4 commit 1c1894a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
31 changes: 0 additions & 31 deletions src/GZCTF/ClientApp/plugins/vite-manual-chunk.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/GZCTF/ClientApp/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { prismjsPlugin } from 'vite-plugin-prismjs'
import webfontDownload from 'vite-plugin-webfont-dl'
import tsconfigPaths from 'vite-tsconfig-paths'
import i18nVirtualManifest from './plugins/vite-i18n-virtual-manifest'
import manualChunks from './plugins/vite-manual-chunk'

export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd())
Expand Down Expand Up @@ -43,12 +42,11 @@ export default defineConfig(({ mode }) => {
outDir: 'build',
assetsDir: 'static',
cssCodeSplit: false,
chunkSizeWarningLimit: 1000,
chunkSizeWarningLimit: 1600,
reportCompressedSize: false,
rollupOptions: {
output: {
compact: true,
manualChunks,
hashCharacters: 'base36',
chunkFileNames: 'static/[hash].js',
assetFileNames: 'static/[hash].[ext]',
Expand Down

0 comments on commit 1c1894a

Please sign in to comment.