0

enter image description here

My changes above in screenshot. Just changed the text to Download PDF before it was something else.

Replaced the folder here with the complied code enter image description here

Used this command to compile: ng build --base-href=/parent/ --configuration=production

I have Angular code. I made changes to it and complied with it. It complied successfully with no errors and when I replace the complied folder in server it does not reflect changes.

I tested it out by changing the spelling to make sure I am not making wrong changes or at least the small spelling such as "Ham" to "Han" should reflect as its just text changes but I see no changes.

The process I followed is:

  1. Make my changes to the file let’s say parent.html
  2. Compile the whole folder that has parent.html which is parent folder.
  3. It creates dist folder and inside dist folder it had parent folder, so I replace the parent folder in live server because in server we have parent folder where I want to make changes, so I replaced it with my parent folder with my changes.

So, what I am doing wrong here or missing something, so it does not reflect changes? I had to change in complied file to reflect the changes which is not best way.

aynber
23.3k9 gold badges57 silver badges69 bronze badges
asked Sep 11, 2023 at 1:52
5
  • On Localhost, Did You see the Change?? Commented Sep 11, 2023 at 2:12
  • Yeah I can see the changes on localhost @JensonMJohn Commented Sep 11, 2023 at 2:12
  • Try this Command ng build --prod --clear-cache. Commented Sep 11, 2023 at 2:16
  • @JensonMJohn I already tried that Commented Sep 11, 2023 at 2:20
  • Ok. Unless I see Your Code, Proper Solution will get delayed. Commented Sep 11, 2023 at 2:24

1 Answer 1

0

Just look through the dist folder an look for you changes if they are there probably your server caches the files. If not you maybe need to specify the project in the build command.

answered Sep 11, 2023 at 8:47
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.