Minify studio

This commit is contained in:
Aria Minaei 2023-02-06 13:13:42 +01:00 committed by Aria
parent 8ab1de79ce
commit 29783b53d3

View file

@ -46,6 +46,11 @@ export function createBundles(watch: boolean) {
esbuildConfig.mainFields = ['browser', 'module', 'main'] esbuildConfig.mainFields = ['browser', 'module', 'main']
esbuildConfig.target = ['firefox57', 'chrome58'] esbuildConfig.target = ['firefox57', 'chrome58']
esbuildConfig.conditions = ['browser', 'node'] esbuildConfig.conditions = ['browser', 'node']
} else {
esbuildConfig.define!['process.env.NODE_ENV'] =
JSON.stringify('production')
esbuildConfig.minify = true
} }
build({ build({