[英]Using less-middleware to compile multiple source CSS files into one?
In my Node.js application, I am using less-middleware to compile the LESS files into CSS files. 在我的Node.js应用程序中,我正在使用较少中间件的软件将LESS文件编译为CSS文件。 Works great with single files:
适用于单个文件:
app.use(require('less-middleware')({ src: path.join(__dirname, '../', '/public/css') }));
However, I was wondering if it were possible to take two source .less
files, and compile (and optinally minify) them into one single .css
file. 但是,我想知道是否有可能获取两个源
.less
文件,并将它们编译(并最小化)为一个单独的.css
文件。
Got it working using @import
: 使用
@import
使其工作:
... LESS code...
... more LESS...
@import "style";
@import "style2";
via Join two .less files into one css file 通过将两个.less文件合并为一个css文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.