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 use xliffmerge with custom webpack config? #157

Closed
julkue opened this issue Jan 14, 2020 · 1 comment
Closed

How to use xliffmerge with custom webpack config? #157

julkue opened this issue Jan 14, 2020 · 1 comment

Comments

@julkue
Copy link

julkue commented Jan 14, 2020

Thanks for publishing xliffmerge, I think it's a valuable extension to Angular.

I'm using a custom webpack builder to allow configuring Webpack namespaces (alias). So, my serve builder looks like:

"builder": "@angular-builders/custom-webpack:dev-server",

Now, xliffmerge of course is not a supported builder within @angular-builders/custom-webpack. So how do I tell xliffmerge to use the same custom webpack file like serve and build? Without telling it, the extract action will just fail.

This is my configuration:

{
  "xliffmerge": {
    "builder": "@ngx-i18nsupport/tooling:xliffmerge",
    "options": {
      "xliffmergeOptions": {
        "i18nFormat": "xlf",
        "srcDir": "src/locale",
        "genDir": "src/locale",
        "defaultLanguage": "en",
        "languages": [
          "de",
          "fr",
          "it"
        ]
      }
    }
  }
}
@julkue julkue closed this as completed Jan 14, 2020
@julkue
Copy link
Author

julkue commented Jan 16, 2020

See just-jeb/angular-builders#659 for more information.

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