0

How to make Angular-Cli (Angular-4) automatically append URL's to Style's or Script's when adding external libraries from npm install --save into .angular-cli.json?

So far, We need to manually traverse into the node_modules folder and look for the address of the file and use the same in the .angular-cli.json.

Is there any work around ?

Thank You

Regards

Shohil Sethia

1
  • 3
    You can't. Not all libraries are the same, therefore the import isn't the same. Commented Nov 2, 2017 at 13:58

1 Answer 1

1

use the --base-href https:// to build the project. like ng build -prod --base-ref http://

Also consider using @angular/[email protected] or latest if latest is working.

Sign up to request clarification or add additional context in comments.

1 Comment

A code example would be better @fox-jazz, Please provide one.

Your Answer

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.