【.less不能被解析成.css】 CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.
2019-08-09 19:28
2131 查看
今天遇到个问题,页面加载.less 后缀的文件的时候,报错CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.
大致翻译:无法从“file:`urls”加载CSS,除非它们以“.css”文件扩展名结尾。
意思就是页面必须加载以.css为后缀的css文件,那么问题来了,怎样将.less后缀的文件怎样快速的转换成.css文件呢?
解决方法:使用Koala工具。Koala官网下载
(1)下载并安装Koala工具
(2)打开Koala工具(添加项目目录,)
这样就会将载入项目的文件里面的所有的.less文件 ,全部解析成【同名、同文件夹】.css文件。
-------------完。
相关文章推荐
- “System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 错误
- cannot be resolved to absolute file path because it does not reside in the file system
- Request is not public in 'okhttp3.Request'.Cannot be accessed from outside package
- Some projects cannot be imported because they already exist in the workspace 解决方案
- cannot be resolved to absolute file path because it does not reside in the file system : jar:file:/D
- Android开发问题 - Some projects cannot be imported because they already exist in the workspace
- Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration info
- MyEclipse导入项目已存在(Some projects cannot be imported because they already exist in the workspace)
- 解决:Some projects cannot be imported because they already exist in the workspace
- cannot be opened with the QT 4 from editor.try converting the file using uic.exe
- 解决Eclipse导入项目是提示错误:Some projects cannot be imported because they already exist in the workspace
- cannot be resolved to absolute file path because it does not reside in the file system
- eclipse 中添加工程 Some projects cannot be imported because they already exist in the workspace
- External file changes sync may be slow: Project files cannot be watched (are they under network mount?)
- eclipse 中添加工程 Some projects cannot be imported because they already exist in the workspace
- warning C4819: The file contains a character that cannot be represented in the current code page
- 解决: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
- eclipse import工程出现Some projects cannot be imported because they already exist in the workspace
- (Eclipse/Myeclipse) Some projects cannot be imported because they already exist in the workspace
- 删工程时总中断,后来从文件删除,不能导入 Some projects cannot be imported because they already exist...