资产无法在sails.js应用程序中加载 [英] Assets not loading in sails.js app

查看:122
本文介绍了资产无法在sails.js应用程序中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Arch Linux迁移到Windows 7。

我已经安装了nodejs,npm,sails,grunt。我使用 sails new< name> 创建了一个新的sails项目,并使用 sails lift 开始了它。



我的资产将不会被sails编译或注入。 .tmp / public也不存在。



也许有人可以帮我解决问题吗?

解决方案

nofollow> https://github.com/balderdashy/sails/issues/3013



它可能是Grunt默认为False,这意味着咕噜声工作流程不构建您的资产或创建公共Web文件夹。

I moved from Arch Linux to Windows 7.

I've installed nodejs, npm, sails, grunt. I created a new sails project with sails new <name> and started it with sails lift.

My assets will be not compiled or injected by sails. .tmp/public does not exist, too.

Maybe someone can help me out?

解决方案

Check out this issue

https://github.com/balderdashy/sails/issues/3013

Its probably that Grunt is defaulting to False, which means the grunt work flow is not building your assets or creating the public web folder.

这篇关于资产无法在sails.js应用程序中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆