G
G
grabbee2020-09-07 13:59:53
webpack
grabbee, 2020-09-07 13:59:53

How to make two builds of a VUE site at the same time?

i18n allows you to set the locale for the entire site at once. And when replacing just one variable, the language of the site changes. I want to make a separate EN and a separate RU site. But I don't know how to do it right. The sites will be on different domains. The code will not be uploaded at the same time. But how to make the build process itself if only one variable changes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-09-07
@Aetae

Well, for example, set this variable using webpack.DefinePlugin at build time.
But in general - why the hell do you need two identical assemblies that differ in one variable? Take this setting to the application config and just put the one you need on the right page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question