Skip to content

Instantly share code, notes, and snippets.

@santhosh17s
Last active February 20, 2018 14:18
Show Gist options
  • Save santhosh17s/5b2d8d586543631d7814350aee34534d to your computer and use it in GitHub Desktop.
Save santhosh17s/5b2d8d586543631d7814350aee34534d to your computer and use it in GitHub Desktop.
Angular 4 - CLI - Build and Deploy URL options
//Angular CLI - Build with base-href and deploy-url options
> ng build --prod --base-href /projectName --deploy-url /publicFolderName
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Single Page Application</title>
<base href="/projectName">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="/publicFolderName/styles.xxxx.bundle.css" rel="stylesheet"/></head>
<body>
<app-root>Loading...</app-root>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment