我的_main.less文件中有以下样式
#mapid {
width: 100%;
min-height: min(65vh, 500px);
max-height: 500px;
}
Run Code Online (Sandbox Code Playgroud)
但是 Less 编译器抱怨(使用 grunt)
>> File "public/less/_main.less" changed.
Running "less:development" (less) task
>> ./public/less/_main.less: [L86:C14] error evaluating function `min`: incompatible types
Warning: Error compiling ./public/less/_main.less Use --force to continue.
Aborted due to warnings.
Run Code Online (Sandbox Code Playgroud)
但这在 CSS 中运行良好(请参阅文档)。
我正在我的服务器上运行一个 dockerized node.js 应用程序,使用--max-old-space-size限制应用程序堆大小的选项。htop 给出以下输出:
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
10158 root 20 0 4284 720 644 S 0.0 0.0 0:00.00 sh -c node --max-old-space-size=512 ./dist/www.js
10159 root 20 0 1841M 929M 29592 S 0.0 3.0 1h31:16 node --max-old-space-size=512 ./dist/www.js
10160 root 20 0 1841M 929M 29592 S 0.0 3.0 0:00.00 node --max-old-space-size=512 ./dist/www.js
10161 root 20 0 1841M 929M 29592 S 0.0 3.0 7:27.13 node --max-old-space-size=512 ./dist/www.js
10162 root 20 …Run Code Online (Sandbox Code Playgroud)