Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Less POSTSS作为引用而不是内联导入_Less_Postcss - Fatal编程技术网

Less POSTSS作为引用而不是内联导入

Less POSTSS作为引用而不是内联导入,less,postcss,Less,Postcss,Less有这样的便利,即引用的导入文件将仅用于解析变量,而不会内联。是否有任何方法可以使用POSTSS插件或任何其他类似的POSTSS插件执行相同的操作 下面的代码块是这种行为如何在较少的时间内工作的。我希望在POSTSS中实现类似的行为 @import (reference) "foo.less"; /* Content of "foo.less" won't be inlined but variables on this different file will be resolved *

Less有这样的便利,即引用的导入文件将仅用于解析变量,而不会内联。是否有任何方法可以使用POSTSS插件或任何其他类似的POSTSS插件执行相同的操作

下面的代码块是这种行为如何在较少的时间内工作的。我希望在POSTSS中实现类似的行为

@import (reference) "foo.less";

/* Content of "foo.less" won't be inlined but variables on this different file will be resolved */
.rules {
    width: @big; /* Declared in "foo.less". It will be resolved to 1200px (for example) */
}

您的示例缺少一些关键信息。
@big
是何时/如何定义的?我已经对文本做了一些澄清。您的示例缺少一些关键信息。
@big
是什么时候/如何定义的?我已经对文本做了一些澄清。