瀏覽代碼

Avoids webpack output for prod builds

main
Eric Amodio 1 年之前
父節點
當前提交
8ef92d4e45
共有 1 個檔案被更改,包括 12 行新增6 行删除
  1. +12
    -6
      webpack.config.js

+ 12
- 6
webpack.config.js 查看文件

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

Loading…
取消
儲存