Minify studio
This commit is contained in:
parent
8ab1de79ce
commit
29783b53d3
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ export function createBundles(watch: boolean) {
|
|||
esbuildConfig.mainFields = ['browser', 'module', 'main']
|
||||
esbuildConfig.target = ['firefox57', 'chrome58']
|
||||
esbuildConfig.conditions = ['browser', 'node']
|
||||
} else {
|
||||
esbuildConfig.define!['process.env.NODE_ENV'] =
|
||||
JSON.stringify('production')
|
||||
|
||||
esbuildConfig.minify = true
|
||||
}
|
||||
|
||||
build({
|
||||
|
|
Loading…
Reference in a new issue