Updating all dependencies, including Webpack (which relates to #723)
Sort out incompatibilities like template syntax for html-webpack-plugin, or nopt stuff, ...
Apply workaround for faulty order
Details about faulty order workaround
By default the index.html would have contained those JS dependencies: vendor, main and finally all the globalize files like i18n/en. This is a problem, as i18n/en is required to be inserted before main. I'm sure this can to be solved within the globalize-webpack-plugin, but I was unable to understand its internals.
Remaining issue
Switching locale cannot be done by just replacing i18n/en by e.g. i18n/de as this causes the following Webpack error in the browser: Uncaught TypeError: Cannot read property 'call' of undefined
However if you keep the i18n/en dependency and just add another one below, it seems to work as the latter de overrules the former en:
What I did:
Details about faulty order workaround
By default the
index.html
would have contained those JS dependencies:vendor
,main
and finally all the globalize files likei18n/en
. This is a problem, asi18n/en
is required to be inserted beforemain
. I'm sure this can to be solved within the globalize-webpack-plugin, but I was unable to understand its internals.Remaining issue
Switching locale cannot be done by just replacing
i18n/en
by e.g.i18n/de
as this causes the following Webpack error in the browser:Uncaught TypeError: Cannot read property 'call' of undefined
However if you keep the
i18n/en
dependency and just add another one below, it seems to work as the latterde
overrules the formeren
:Since this is contradictory behavior to the previous version, I'm sure there must be a better solution within globalize-webpack-plugin.