I’ve managed to upload my static assets to S3, so they could be served from there in prod. This required me to hardcode the s3 link to those assets in my index.html. Does anybody know how to make it so that in dev mode I use one link to my assets (e.g. build/css), and in prod mode I use the link to my s3 assets (e.g. s3.amazon…)
I have a globalVars service which I could use to set the root of those urls, but I don’t know how to use that in the html.
what I want in prod
<link ios-href="//s3-us-west-2.amazonaws.com/myapp/assets/app.ios.css" rel="stylesheet"> <link md-href="//s3-us-west-2.amazonaws.com/myapp/assets/app.md.css" rel="stylesheet"> <link wp-href="//s3-us-west-2.amazonaws.com/myapp/assets/app.wp.css" rel="stylesheet"> -->
what I want in dev
<link ios-href="build/css/app.ios.css" rel="stylesheet"> <link md-href="build/css/app.md.css" rel="stylesheet"> <link wp-href="build/css/app.wp.css" rel="stylesheet">