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

how to replacement of multiple different paths? #201

Open
xianghongai opened this issue Mar 7, 2019 · 1 comment
Open

how to replacement of multiple different paths? #201

xianghongai opened this issue Mar 7, 2019 · 1 comment

Comments

@xianghongai
Copy link

xianghongai commented Mar 7, 2019

assets/a/a.js
assets/b/b.js
vonder/a/a.js
vonder/b/b.js
->
path/assets/a/a.js
path/assets/b/b.js
path/vonder/a/a.js
path/vonder/b/b.js
@xianghongai
Copy link
Author

revAllOption.transformPath = function (rev, source, path) {
    return rev.replace(_ASSETS.rev.substr, _ASSETS.rev.newSubStr);
};
rev: {
    substrVendor: 'vendor/',
    newSubStrVendor: '/path/xxx/',
    substr: 'assets/',
    newSubStr : '/path/assets/'
  },

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