Ver código fonte

Avoids webpack output for prod builds

main
Eric Amodio 1 ano atrás
pai
commit
8ef92d4e45
1 arquivos alterados com 12 adições e 6 exclusões
  1. +12
    -6
      webpack.config.js

+ 12
- 6
webpack.config.js Ver arquivo

@ -238,9 +238,12 @@ function getExtensionConfig(target, mode, env) {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
plugins: plugins,
infrastructureLogging: {
level: 'log', // enables logging required for problem matchers
},
infrastructureLogging:
mode === 'production'
? undefined
: {
level: 'log', // enables logging required for problem matchers
},
stats: {
preset: 'errors-warnings',
assets: true,
@ -465,9 +468,12 @@ function getWebviewsConfig(mode, env) {
modules: [basePath, 'node_modules'],
},
plugins: plugins,
infrastructureLogging: {
level: 'log', // enables logging required for problem matchers
},
infrastructureLogging:
mode === 'production'
? undefined
: {
level: 'log', // enables logging required for problem matchers
},
stats: {
preset: 'errors-warnings',
assets: true,

Carregando…
Cancelar
Salvar