I'm creating angular project and I have few dictionaries in json files. When I'm building them with grunt and deploying on server I'm getting errors when my service is trying to get those jsons.
"NetworkError: 404 Not Found - http://localhost:8080/dist/scripts/dictionaries/loanStatuses.json "
I started my project with yeoman. I didn't change my grunt config - I don't really know how to. How can I make it work?
转到您的Gruntfile.js,搜索副本配置并将其添加到files.src数组中:
'/scripts/dictionaries/*.json'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.