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:
parent
fb3eb3ac5c
commit
53157f3c40
@ -19,6 +19,7 @@ export default (function viteConfig() {
|
||||
port: 4174
|
||||
},
|
||||
build: {
|
||||
reportCompressedSize: false,
|
||||
minify: false,
|
||||
sourcemap: true,
|
||||
outDir: 'es',
|
||||
|
@ -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',
|
||||
|
@ -54,6 +54,7 @@ export default (function viteConfig() {
|
||||
port: 4174
|
||||
},
|
||||
build: {
|
||||
reportCompressedSize: false,
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
lib: {
|
||||
|
@ -45,6 +45,7 @@ export default defineConfig((config) => {
|
||||
build: {
|
||||
outDir: resolve(__dirname, 'umd'),
|
||||
emptyOutDir: true,
|
||||
reportCompressedSize: false,
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
cssCodeSplit: true,
|
||||
|
@ -31,6 +31,7 @@ export default (function viteConfig() {
|
||||
port: 5368
|
||||
},
|
||||
build: {
|
||||
reportCompressedSize: false,
|
||||
outDir: resolve(__dirname, 'umd'),
|
||||
emptyOutDir: true,
|
||||
minify: true,
|
||||
|
@ -53,6 +53,7 @@ export default defineConfig((config) => {
|
||||
build: {
|
||||
outDir: resolve(__dirname, 'umd'),
|
||||
emptyOutDir: true,
|
||||
reportCompressedSize: false,
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
cssCodeSplit: false,
|
||||
|
@ -29,6 +29,7 @@ export default (function viteConfig() {
|
||||
},
|
||||
build: {
|
||||
outDir: resolve(__dirname, 'umd'),
|
||||
reportCompressedSize: false,
|
||||
emptyOutDir: true,
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
|
@ -50,6 +50,7 @@ export default defineConfig((config) => {
|
||||
},
|
||||
build: {
|
||||
outDir: resolve(__dirname, 'umd'),
|
||||
reportCompressedSize: false,
|
||||
emptyOutDir: true,
|
||||
minify: true,
|
||||
sourcemap: true,
|
||||
|
Loading…
Reference in New Issue
Block a user