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

扩展类试replace的插件无法替换 #2007

Closed
huixisheng opened this issue Dec 24, 2018 · 0 comments · Fixed by #2008
Closed

扩展类试replace的插件无法替换 #2007

huixisheng opened this issue Dec 24, 2018 · 0 comments · Fixed by #2008

Comments

@huixisheng
Copy link
Contributor

Description

  function replaceCode() {
    return code.replace('xxx', '')
  }

  this.register('output-file', ({ filename, code }) => {
    code = replaceCode(code);
    return Promise.resolve({ filename, code });
  });

无法对.wpy文件的内容替换

Environment

wepy2

Observed Results

.wpy的文件xxx不会替换

Expected Results

可以替换文件.wpyxxx

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

Successfully merging a pull request may close this issue.

1 participant