内容简介:代码日志版权声明:翻译自:http://stackoverflow.com/questions/17712214/grunt-contrib-less-cannot-find-source-files-even-though-path-is-correct
我正在努力为我编写一个较少的文件.我有以下gruntfile:
less: {
files: {
"httpdocs/static/assets/css/result.css": "httpdocs/static/assets/css/dashboard.less"
}
},
路径是绝对正确的,我已经三重检查那些文件存在,但是,当我运行grunt我得到以下消息:
Running "less:files" (less) task >> Destination not written because no source files were provided.
我从gruntfile中遗漏了什么,使其正确编译少文件?我正在撕裂我的头发,因为我知道这可能是一个很简单的事情,但我无法理解.
您的较少配置不起作用,因为您需要在较少的内容中将其放入特定目标.例如
less: {
yourTarget : {
files: {
"httpdocs/static/assets/css/result.css": "httpdocs/static/assets/css/dashboard.less"
}
}
},
并运行使用
grunt less:yourTarget
您可以将目标命名为您想要的内容,但因为较少的是多任务,所以需要至少有一个目标.
代码日志版权声明:
翻译自:http://stackoverflow.com/questions/17712214/grunt-contrib-less-cannot-find-source-files-even-though-path-is-correct
以上所述就是小编给大家介绍的《即使路径正确,javascript – grunt-contrib-less也找不到源文件》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- C++中头文件和源文件详细介绍
- 理解 C++ 中的头文件和源文件的作用
- 构建 – 如何使用CMake收集源文件?
- TFS:新一代开源文件系统
- 惰性编译资源仓库中的源文件
- 深入解析Java绝对路径与相对路径
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Spring in Action
Craig Walls / Manning Publications / 2011-6-29 / USD 49.99
Spring in Action, Third Edition has been completely revised to reflect the latest features, tools, practices Spring offers to java developers. It begins by introducing the core concepts of Spring and......一起来看看 《Spring in Action》 这本书的介绍吧!
Markdown 在线编辑器
Markdown 在线编辑器
HEX CMYK 转换工具
HEX CMYK 互转工具