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

项目配置中的copy的options.ignore选项并不生效。 #4100

Closed
fishen opened this issue Aug 7, 2019 · 4 comments
Closed

项目配置中的copy的options.ignore选项并不生效。 #4100

fishen opened this issue Aug 7, 2019 · 4 comments
Assignees

Comments

@fishen
Copy link

fishen commented Aug 7, 2019

问题描述
按照文档设置,在watch模式下,copy.options.ignore选项并不生效。

复现步骤
[复现问题的步骤]

  1. 修改配置
  2. npm run dev:weapp
  3. 修改忽略的文件并保存
  4. 忽略的文件依然被拷贝
  copy: {
    patterns: [
      
    ],
    options: {
      ignore: ["src/ext.json"]
    }
  },

期望行为
设置忽略的文件可以不进行拷贝

报错信息
image

系统信息
Taro CLI 1.3.11 environment info:
System:
OS: Linux 4.4 Ubuntu 18.04.1 LTS (Bionic Beaver)
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 12.0.0 - /usr/bin/node
npm: 6.10.3 - /usr/bin/npm
npmPackages:
@tarojs/cli: 1.3.12 => 1.3.12
@tarojs/components: 1.3.12 => 1.3.12
@tarojs/plugin-babel: 1.3.12 => 1.3.12
@tarojs/plugin-csso: 1.3.12 => 1.3.12
@tarojs/plugin-sass: 1.3.12 => 1.3.12
@tarojs/plugin-uglifyjs: 1.3.12 => 1.3.12
@tarojs/router: 1.3.12 => 1.3.12
@tarojs/taro: 1.3.12 => 1.3.12
@tarojs/taro-alipay: 1.3.12 => 1.3.12
@tarojs/taro-h5: 1.3.12 => 1.3.12
@tarojs/taro-swan: 1.3.12 => 1.3.12
@tarojs/taro-tt: 1.3.12 => 1.3.12
@tarojs/taro-weapp: 1.3.12 => 1.3.12
@tarojs/webpack-runner: 1.3.12 => 1.3.12
eslint-config-taro: 1.3.12 => 1.3.12
eslint-plugin-taro: 1.3.12 => 1.3.12
nerv-devtools: ^1.4.3 => 1.4.3
nervjs: ^1.4.3 => 1.4.3
stylelint-config-taro-rn: 1.3.12 => 1.3.12
stylelint-taro-rn: 1.3.12 => 1.3.12
npmGlobalPackages:
typescript: 3.4.5

补充信息
试过“ext.json”,"/src/ext.json"等设置都不生效。

@taro-bot
Copy link

taro-bot bot commented Aug 7, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@shenghanqin
Copy link
Collaborator

过来跟一个,没准以后用到。

@taro-bot
Copy link

taro-bot bot commented Aug 15, 2019

CC @luckyadam

@Chen-jj
Copy link
Contributor

Chen-jj commented Feb 9, 2021

Taro3 已解决。

@Chen-jj Chen-jj closed this as completed Feb 9, 2021
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

5 participants