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

[Feature] Manually modify output path #107

Closed
patkec opened this issue Jan 12, 2017 · 5 comments · Fixed by #284
Closed

[Feature] Manually modify output path #107

patkec opened this issue Jan 12, 2017 · 5 comments · Fixed by #284

Comments

@patkec
Copy link

patkec commented Jan 12, 2017

Hi!

It would be great if something like this would be supported:

{
  context: './src/',
  from: '**/i18n/*',
  to: function(url) {
    return path.resolve('i18n', url.replace('i18n/', ''));
  }
}

Basically, we want to get all localization files and output them under a single i18n folder, preserving folder structure but without i18n.

I can also try adding this via PR during next days, if anyone else is interested.

@kevlened
Copy link
Contributor

I like the idea of a to function!

@guinnberg
Copy link

Actually I'd include as parameters of the function all the available parameters in the template patterns, but I love the idea and actually need it!!

@julianxhokaxhiu
Copy link

Please consider solving this issue, either accepting the PR or implementing it yourself. This is a must in my opinion.

@alexander-akait
Copy link
Member

PR welcome 👍

@darielnoel
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment