Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 784 Bytes

File metadata and controls

50 lines (32 loc) · 784 Bytes

This example uses the I18nPlugin in combination with the multi-compiler feature.

The webpack.config.js exports an array of all config combinations that should be compiled. In this example two different parameters for the I18nPlugin are used.

The I18nPlugin replaces every occurrence of the i18n function __(...) with a const string. i. e. __("Hello World") with "Hello World" resp. "Hallo Welt".

example.js

{{example.js}}

webpack.config.js

{{webpack.config.js}}

de.json

{{de.json}}

dist/de.output.js

{{dist/de.output.js}}

dist/en.output.js

{{dist/en.output.js}}

Info

Unoptimized

{{stdout}}

Production mode

{{production:stdout}}