# Title no longer settable in webpack.config.js

**URL:** <https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817>\
**Category:** Framework Knowledge\
**Created:** [October 2, 2020, 11:28am UTC](https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817 "2020-10-02T11:28:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidriduch](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/vidriduch/32/675_2.png) [@vidriduch](https://discourse.aurelia.io/u/vidriduch)\
**Post date:** [October 2, 2020, 11:28am UTC](https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817/1 "2020-10-02T11:28:17Z")

</div>

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?

_webpack.config.js_

```
// primary config:
const outDir = path.resolve(__dirname, project.platform.output);
const srcDir = path.resolve(__dirname, 'src');
const baseUrl = '';

```

_index.ejs_

```
<meta charset="utf-8">
<title>Aurelia Navigation Skeleton</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

```

Thank you

---

<div class="post-metadata">

**Author:** ![avrahamcool](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/avrahamcool/32/368_2.png) [@avrahamcool](https://discourse.aurelia.io/u/avrahamcool)\
**Post date:** [October 2, 2020, 11:39am UTC](https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817/2 "2020-10-02T11:39:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![vidriduch](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/vidriduch/32/675_2.png) [@vidriduch](https://discourse.aurelia.io/u/vidriduch)\
**Post date:** [October 2, 2020, 11:53am UTC](https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817/3 "2020-10-02T11:53:00Z")

</div>

is there a github ticket for this decision somewhere? I could not find anything… just wandered what was the community reasoning. thanks.

---

<div class="post-metadata">

**Author:** ![avrahamcool](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/avrahamcool/32/368_2.png) [@avrahamcool](https://discourse.aurelia.io/u/avrahamcool)\
**Post date:** [October 2, 2020, 12:10pm UTC](https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817/4 "2020-10-02T12:10:13Z")

</div>

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.

> <https://github.com/aurelia/v1/pull/17/files>

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.

---

<div class="post-metadata">

**Author:** ![vidriduch](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/vidriduch/32/675_2.png) [@vidriduch](https://discourse.aurelia.io/u/vidriduch)\
**Post date:** [October 2, 2020, 12:51pm UTC](https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817/5 "2020-10-02T12:51:40Z")

</div>

for me there was a benefit as I could read a version of app from package.json and stick it to title.

```
const title = 'Super cool app @ Evil co. v' + require("./package.json").version;

```

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!

---

<div class="post-metadata">

**Author:** ![avrahamcool](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/avrahamcool/32/368_2.png) [@avrahamcool](https://discourse.aurelia.io/u/avrahamcool)\
**Post date:** [October 2, 2020, 1:13pm UTC](https://discourse.aurelia.io/t/title-no-longer-settable-in-webpack-config-js/3817/6 "2020-10-02T13:13:08Z")

</div>

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…
