Dolan
Dolan

Reputation: 1647

Angular + cdnify

I am from an AngularJS background, and the build process of an AngularJS app has a process called cdnify, which converts local URLs to CDN ones:

https://www.npmjs.com/package/grunt-cdnify

https://www.npmjs.com/package/gulp-cdnify

Does Angular have this build step? Or is it not required anymore?

If CDNs are still relevant, how would I achieve this in Angular + @angular/cli?

Upvotes: 0

Views: 212

Answers (1)

filoxo
filoxo

Reputation: 8390

As of angular-cli version 1.0.0-beta.25, you can accomplish this two ways.

  • add a "deployUrl" key in your project's angular-cli.json
  • pass a value with the --deploy-url flag to ng build

Source: PR #3285

Upvotes: 2

Related Questions