I have created a new aurelia app today using cli 2.0.2 and looking into the webpack.config.js , the title variable is no longer settable there. the index.ejs has also changed to hardcoded string. Is there a reason this has changed?
because it is only used in the title in the html.
there is no point in setting it as a variable there and pass it around to the html.
am I missing something?
you can always create it as a variable if this is what you need.
but is this relevant for all users? and should be there by default?
emm, no - and it’s my fault.
while I was fixing an issue regarding serving a webpack bundle from a non-root path on the server, I also tried to simplify the webpack configuration. and I committed this work together.
is there a benefit in having the title set in webpack config?
I understand that you probably interested in manipulating the title based on the current environment?
you are right in that I should not have changed this without talking about it first.
sorry for that.
but I have added it without problems, just wondered really if there was a performace benefit or something … only being curious (or pain in a neck ) thats all. thank you!
is this really helpful though?
a long title gets truncated by the browser, and that even before the router adds the current route to the mix…
we also do this kind of stuff, but display the data as a small footer in the app…