panhui 2 년 전
부모
커밋
0e5a8a4e0e
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 7
      vite.config.ts

+ 1 - 7
vite.config.ts

@@ -76,16 +76,10 @@ export default defineConfig(env => {
         build: {
             reportCompressedSize: false,
             sourcemap: false,
+            assetsInlineLimit: 0,
             commonjsOptions: {
                 ignoreTryCatch: false
             }
-        },
-        chainWebpack: (config: any) => {
-            config.module
-                .rule('images')
-                .use('url-loader')
-                .loader('url-loader')
-                .tap((options: any) => Object.assign(options, { limit: 100 }))
         }
     }
 })