每次我更改样式中的某些内容时(例如,在less/variables.less 中),我都会在前端得到一个已知错误:
Undefined variable: css in /ImpressPages/Ip/Internal/Design/LessCompiler.php:69
我在文件或链接中找不到任何错误,也没有权限设置错误。
我的 theme.less 看起来像这样:
//
// ImpressPages theme: One Pager Crystal
//
// Main theme's LESS file. Contains only imports of required components.
// Integrated with fluid and responsive grid system
//
// @package ImpressPages
//
@import "ipContent.less";// import system ipContent.less file (widget styles)
@import "less/variables.less";
@import "less/layout.less";
@import "widgetOverride.css";
less/variables.less 看起来像这样:
// Variables Grayscale Theme
@primary: #0033ff;
@dark: #000;
@light: #fff;
可能是什么问题呢?不是可以在主题中添加自己的less文件吗?PHPStorm 在我的 layout.less 中显示了正确的颜色,因此 variables.less 中的值匹配正确。
我本地系统上的所有组的用户权限都设置为 775/775,所以这不是我的问题。
我正在使用今天从 github 构建的版本。
有人有想法吗?