Bladeren bron

Avoids webpack output for prod builds

main
Eric Amodio 1 jaar geleden
bovenliggende
commit
8ef92d4e45
1 gewijzigde bestanden met toevoegingen van 12 en 6 verwijderingen
  1. +12
    -6
      webpack.config.js

+ 12
- 6
webpack.config.js Bestand weergeven

@ -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,

Laden…
Annuleren
Opslaan