如何使用带有sails的ng-build生成的dist文件夹作为应用程序的前端以及sails生成的后端api?
好吧,我设法得到这项工作,只是把这个让其他人想知道
在config / routes.js中编辑:
module.exports.routes = { '/': { view: 'index.html' } };
然后将你的dist文件夹内容从角度ng build --prod复制到sails资源文件夹,然后升帆
ng build --prod