在 JavaScript MVC 中的构建过程中找不到生产.css
Cannot find production.css during the build process in JavaScript MVC
我生成了一个示例应用程序,只是为了测试构建过程,它在构建过程中出错。
$ ./js steal/buildjs apps/hello/hello.html -to apps/helloprod
Building to apps/helloprod/
BUILDING STYLES ---------------
apps/hello/hello.css
STYLE BUNDLE > apps/helloprod/production.css
Nice! Compressed: 17.1% Before: 41.0 bytes After: 34.0 bytes
!!!!!!!!!!! ERROR !!!!!!!!!!!
-message = java.io.FileNotFoundException: apps/helloprod/production.css (No such file or directory)
-fileName = steal/rhino/file.js
-lineNumber = 217
-name = JavaException
-javaException = java.io.FileNotFoundException: apps/helloprod/production.css (No such file or directory)
error loading html element [object HTMLScriptElement] JavaException: java.io.FileNotFoundException: apps/helloprod/production.css (No such file or directory)
当我生成一个应用程序时,默认情况下.css文件中有一些内容,所以我什至尝试删除里面的内容(在这种情况下,它会出错,因为它无法计算文件大小,例如它说NaN undefined
而不是 41.0 字节)。当我刚刚在hello.css
遇到这个时,出现了这个特殊的错误:
body{
background-color:lightyellow;
}
有什么想法吗?
根据错误消息,您的问题是apps/helloprod/production.css
文件丢失。
请确保此文件存在,如果从生成过程中删除。
编辑:
是因为steal/rhino/file.js
作为 CSS 的源文件包含在内吗?
相关文章:
- 气质的“nestRemoting()”有时可以'找不到关系
- 错误405:向Java控制器(Ajax)发送JSON时找不到POST方法
- 找不到模块捆绑包
- for循环中的javascript if语句找不到==
- 为什么JavaScript可以'找不到给定的InnerHTML并返回Cannot set property
- 失败:等待Protractor与页面同步时出错:“”;在窗口上找不到角度”;
- Babel编译错误:找不到模块核心js/library/fn/get迭代器
- [Vue warn]:找不到元素
- ngRoute找不到模板
- 未能加载,因为找不到支持的源.当播放HTML5音频元素时
- 因果报应-找不到模块:错误:无法解析模块'scs'
- Angular 2:在本地.json文件上找不到文件
- module.js在运行iron节点时找不到模块
- CSS 转换和转换结束事件的争用条件 - 找不到解决方案
- 在 JavaScript MVC 中的构建过程中找不到生产.css
- 可以'我找不到干扰我布局的CSS元素
- 在Django中使用url参数时,CSS + JS文件找不到(404)
- Thymeleaf + HTML5 -找不到JS或CSS
- 找不到Node.js公共css文件404
- 捆绑 css 文件 - 找不到文件