Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想关闭日志输出 #15984

Closed
wuweikd opened this issue Jun 25, 2024 · 1 comment
Closed

想关闭日志输出 #15984

wuweikd opened this issue Jun 25, 2024 · 1 comment

Comments

@wuweikd
Copy link

wuweikd commented Jun 25, 2024

相关平台

微信小程序

小程序基础库: 无关
使用框架: React

复现步骤


webpackChain: (chain, webpack) => {
      chain.plugin("progress").use(require("webpack").ProgressPlugin, [
        {
          activeModules: false,
          entries: false,
          handler(percentage, message, ...args) {
            // 这里的配置可以生效,说明配置成功了,但是仍然无法关闭打包进度
            // console.log("progress", percentage, message, ...args);
          },
          modules: false,
          modulesCount: 1,
          profile: false,
          dependencies: false,
          dependenciesCount: 1,
          percentBy: null,
        },
      ]);
    },



image

期望结果

希望关闭webpack的打包进度日志,因为打包的日志会被Jenkins写入log文件。这个日志太多了。

实际结果

无法关闭webpack打包进度

环境信息

  Taro CLI 3.6.29 environment info:
    System:
      OS: Windows 10 10.0.19045
    Binaries:
      Node: 18.20.2 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - ~\AppData\Roaming\npm\node_modules\yarn\bin\yarn.CMD
      npm: 10.5.2 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.29 => 3.6.29
      @tarojs/components: 3.6.29 => 3.6.29
      @tarojs/helper: 3.6.29 => 3.6.29
      @tarojs/plugin-framework-react: 3.6.29 => 3.6.29
      @tarojs/plugin-mini-ci: ^3.6.32 => 3.6.32
      @tarojs/plugin-platform-alipay: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-h5: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-jd: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-qq: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-swan: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-tt: 3.6.29 => 3.6.29
      @tarojs/plugin-platform-weapp: 3.6.29 => 3.6.29
      @tarojs/react: 3.6.29 => 3.6.29
      @tarojs/webpack5-runner: 3.6.29 => 3.6.29
      babel-preset-taro: 3.6.29 => 3.6.29
      eslint-config-taro: 3.6.29 => 3.6.29
      expo: ~47.0.3 => 47.0.14
      react: ^18.1.0 => 18.3.1
      react-native: ^0.70.1 => 0.70.15

@wuweikd
Copy link
Author

wuweikd commented Jun 25, 2024

image
是这个配置,红框中

@wuweikd wuweikd closed this as completed Jun 25, 2024
This was referenced Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant