Skip to content

Conversation

MoreBlood
Copy link

this needed for passing arguments through webpack query, for example you have 10 targets with different languages, this will let to pass lang as a query to every build
// #if this.query.lang === 'En'
--- do something ---
// #endif

this needed for passing arguments through webpack query, for example you have 10 targets with different languages, this will let to pass lang as a query to every build
// #if this.query.lang === 'En'
--- do something ---
// #endif
@njgraf512
Copy link

this will let to pass lang as a query to every build

@MoreBlood, looks interesting and possibly helpful to what I'm working on. Could you give an example of how the langs would be passed to each build?

@MoreBlood
Copy link
Author

@njgraf512


            {
              loader: 'webpack-conditional-loader',
              query: {
                aspectRatio: build.width / build.height,
                resizeCode: helpers.getSizeCodeName(build.width, build.height),
                language: build.language,
                localizationTool: true,
              },

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 this pull request may close these issues.

2 participants