Thursday, 25 May 2017

Error on add external css in augular-cli.json file from AWS s3

I want to include css file from s3 but project failed to compile

Module not found: Error: Can't resolve '/Users/WebstormProjects/ra_management_frontend/src/http:/myurl/ra-management/assets/css/font-awesome.min.css

and below I am including an external link in angular-cli.json file

 "styles": [
    "http://myurl/ra-management/assets/css/font-awesome.min.css",
   "./styles/main.scss"

 ],
 "scripts": [
   "../node_modules/jquery/dist/jquery.js",
   "../node_modules/bootstrap/dist/js/bootstrap.min.js"

 ],

Alternate best approach Or is there any alternate approach for font-awsome or external css. I am serving angular using express in EC2 on aws. On ec2 local css which i serve from assets can work but when I attach it with load balancer it's not loading css that's why I am looking for s3.

Thanks in advance.any help or guideline will be appreciate a lot



via Developer

No comments:

Post a Comment