Angular CLI and production build output filename issue

420 views
Skip to first unread message

Thierry Ciot

unread,
Jan 10, 2017, 4:51:08 PM1/10/17
to Angular
We are starting to use the CLI tool and have only one last problem to get going.  
We need to include the build artifacts from a JSP page but the tool produces file names with a variable postfix (for example, postfix c0125ba6898c5b393214 in main.c0125ba6898c5b393214.bundle.js).

Is there a way to either:
  1. Have the tool not generate filename without postfix?
  2. Have a way to specify the postfix value at build time?
Thanks in advance, Thierry.

Thierry Ciot

unread,
Jan 13, 2017, 11:40:33 AM1/13/17
to Angular

Hi,

Am I the only one running into this or is the CLI tool not that used yet?

Thanks.

Sander Elias

unread,
Jan 13, 2017, 12:46:59 PM1/13/17
to Angular
Hi Thierry,

You are not the only one ;)
I'm not aware of an option on the prefixes, however, I seem to remember talking with one of the cli-team members about this a while ago.
IIRC the response was, that this usually gets done (automatically) by the tools that take care of the deployment. A side note being that there are so many different setups for production, that it is not possible to add support for that.

Hope this help's you a bit.
Regards
Sander

Thierry Ciot

unread,
Jan 13, 2017, 10:16:24 PM1/13/17
to Angular
yes it helps to get confirmation that we haven't overlook a possible solution.  We will then have to do implement a post build step to rename these files to a predicable name.

On a side note, I would think it would be really straightforward for the CLI team to add a flag such that the name of the out put files are fixed.

Thanks for your time.

Sander Elias

unread,
Jan 14, 2017, 12:59:36 AM1/14/17
to Angular
Hi Thierry,

I can open an issue for this if you want?

Regards
Sander

Thierry Ciot

unread,
Jan 14, 2017, 5:54:47 PM1/14/17
to ang...@googlegroups.com
Yes that would be great.
Thanks.

--
You received this message because you are subscribed to a topic in the Google Groups "Angular" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/TPloz8WXuvc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+unsubscribe@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

rodman....@yahoo.com

unread,
Jan 15, 2017, 12:05:17 AM1/15/17
to ang...@googlegroups.com

--------------------------------------------
On Sun, 1/15/17, Thierry Ciot <thc...@gmail.com> wrote:

Subject: Re: [AngularJS] Re: Angular CLI and production build output filename issue
To: ang...@googlegroups.com
Date: Sunday, January 15, 2017, 12:54 AM
You received this message because you are subscribed to the
Google Groups "Angular" group.

To unsubscribe from this group and stop receiving emails
from it, send an email to angular+u...@googlegroups.com.

To post to this group, send email to ang...@googlegroups.com.

Visit this group at https://groups.google.com/group/angular.

For more options, visit https://groups.google.com/d/optout.
e azi inainte si pentru totdeauna se uneste cu mama sa Romania. Aceasta unire se face pe urmatoarele baze:

reginem...@yahoo.com

unread,
Jan 15, 2017, 12:18:10 AM1/15/17
to ang...@googlegroups.com

--------------------------------------------
On Sun, 1/15/17, rodman.deborah via Angular <ang...@googlegroups.com> wrote:

Subject: Re: [AngularJS] Re: Angular CLI and production build output filename issue
To: ang...@googlegroups.com
Date: Sunday, January 15, 2017, 7:04 AM
narea in circuitul pietei a mosiilor nobiliare boieresti si manastiresti ca si a

eddabu...@yahoo.com

unread,
Jan 15, 2017, 2:47:42 AM1/15/17
to ang...@googlegroups.com

--------------------------------------------
On Sun, 1/15/17, reginemcfarlane via Angular <ang...@googlegroups.com> wrote:

Subject: Re: [AngularJS] Re: Angular CLI and production build output filename issue
To: ang...@googlegroups.com
Date: Sunday, January 15, 2017, 7:17 AM
u toate imperfectiunile care rezultau din politica de forta si dictat tratatele semnate cu tara noastra in anii 1919-1920 au reprezentat recunoasterea internationala a statului unitar roman oferindu-i teoretic si garantiile necesare pentru mentinerea si consolidarea sa.

Sander Elias

unread,
Jan 15, 2017, 4:25:59 AM1/15/17
to Angular
Done!,

I'll let you know the result when there is one!

Regards
Sander


On Saturday, January 14, 2017 at 11:54:47 PM UTC+1, Thierry Ciot wrote:
Yes that would be great.
Thanks.
On Sat, Jan 14, 2017 at 12:59 AM, Sander Elias <sande...@gmail.com> wrote:
Hi Thierry,

I can open an issue for this if you want?

Regards
Sander

--
You received this message because you are subscribed to a topic in the Google Groups "Angular" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/TPloz8WXuvc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.

floydj...@yahoo.com

unread,
Jan 15, 2017, 6:07:50 AM1/15/17
to ang...@googlegroups.com

--------------------------------------------
On Sun, 1/15/17, Sander Elias <sande...@gmail.com> wrote:

Subject: Re: [AngularJS] Re: Angular CLI and production build output filename issue
To: "Angular" <ang...@googlegroups.com>
Date: Sunday, January 15, 2017, 11:25 AM
You received this message because you are subscribed to the
Google Groups "Angular" group.

To unsubscribe from this group and stop receiving emails
from it, send an email to angular+u...@googlegroups.com.

To post to this group, send email to ang...@googlegroups.com.

Visit this group at https://groups.google.com/group/angular.

For more options, visit https://groups.google.com/d/optout.
a Confederativa din Moldova e comisul Leonte Radu. - Constituirea de catre studentii ati la studii la Paris a Societatii atatura poporului roman .1839- Olanda recunoaste independenta Belgiei - Agitatii republicane la Paris. 1839-1842-Razboi intre India si Afganistan. 1839-1851-Razboi intre Argentina si Uruguay.

reginem...@yahoo.com

unread,
Jan 15, 2017, 6:08:45 AM1/15/17
to ang...@googlegroups.com

eddabu...@yahoo.com

unread,
Jan 15, 2017, 6:38:25 AM1/15/17
to ang...@googlegroups.com

--------------------------------------------
On Sun, 1/15/17, reginemcfarlane via Angular <ang...@googlegroups.com> wrote:

Subject: Re: [AngularJS] Re: Angular CLI and production build output filename issue
To: ang...@googlegroups.com
Date: Sunday, January 15, 2017, 1:08 PM

jamesmat...@yahoo.com

unread,
Jan 15, 2017, 7:35:41 AM1/15/17
to ang...@googlegroups.com

--------------------------------------------
On Sun, 1/15/17, eddaburleson via Angular <ang...@googlegroups.com> wrote:

Subject: Re: [AngularJS] Re: Angular CLI and production build output filename issue
To: ang...@googlegroups.com
Date: Sunday, January 15, 2017, 1:35 PM
https://groups.google.com/d/optout.amant comunal constituit exclusiv din vanzarea sau inchirierea unor loturi pe

Sander Elias

unread,
Jan 15, 2017, 10:17:51 AM1/15/17
to Angular
Hi Thierry,

It's in. From beta 25 on you can add:  --output-hashing=none to your build command, and it does exactly what you need!

Regards
Sander

Thierry Ciot

unread,
Jan 15, 2017, 12:08:57 PM1/15/17
to Angular
Thanks.
Reply all
Reply to author
Forward
0 new messages