Disabled reporting compressed gzip size

refs https://vitejs.dev/config/build-options.html#build-reportcompressedsize

- this should make building a little bit quicker because it doesn't have
  to calculate the gzip size (I don't think we're likely to hit this
  because we don't have large projects, but it's still nice to clean up
  the output)
This commit is contained in:
Daniel Lockyer 2023-11-15 09:04:18 +01:00 committed by Daniel Lockyer
parent fb3eb3ac5c
commit 53157f3c40
8 changed files with 10 additions and 2 deletions

View File

@ -19,6 +19,7 @@ export default (function viteConfig() {
port: 4174
},
build: {
reportCompressedSize: false,
minify: false,
sourcemap: true,
outDir: 'es',

View File

@ -1,7 +1,7 @@
import react from '@vitejs/plugin-react';
import glob from 'glob';
import { resolve } from 'path';
import { defineConfig } from 'vitest/config';
import {resolve} from 'path';
import {defineConfig} from 'vitest/config';
// https://vitejs.dev/config/
export default (function viteConfig() {
@ -17,6 +17,7 @@ export default (function viteConfig() {
port: 4174
},
build: {
reportCompressedSize: false,
minify: false,
sourcemap: true,
outDir: 'es',

View File

@ -54,6 +54,7 @@ export default (function viteConfig() {
port: 4174
},
build: {
reportCompressedSize: false,
minify: true,
sourcemap: true,
lib: {

View File

@ -45,6 +45,7 @@ export default defineConfig((config) => {
build: {
outDir: resolve(__dirname, 'umd'),
emptyOutDir: true,
reportCompressedSize: false,
minify: true,
sourcemap: true,
cssCodeSplit: true,

View File

@ -31,6 +31,7 @@ export default (function viteConfig() {
port: 5368
},
build: {
reportCompressedSize: false,
outDir: resolve(__dirname, 'umd'),
emptyOutDir: true,
minify: true,

View File

@ -53,6 +53,7 @@ export default defineConfig((config) => {
build: {
outDir: resolve(__dirname, 'umd'),
emptyOutDir: true,
reportCompressedSize: false,
minify: true,
sourcemap: true,
cssCodeSplit: false,

View File

@ -29,6 +29,7 @@ export default (function viteConfig() {
},
build: {
outDir: resolve(__dirname, 'umd'),
reportCompressedSize: false,
emptyOutDir: true,
minify: true,
sourcemap: true,

View File

@ -50,6 +50,7 @@ export default defineConfig((config) => {
},
build: {
outDir: resolve(__dirname, 'umd'),
reportCompressedSize: false,
emptyOutDir: true,
minify: true,
sourcemap: true,