在尝试使用PHPStorm File观察器编译.less文件时.css,我做错了什么?
这是截图,(请打开此链接以查看图像的完整大小):

我安装npm install -g less后安装了NodeJS.lessc使用cmd.exeWindows操作系统中的命令行工具时,它可以正常使用此命令:
lessc custom.less custom.css,但它不会在Filewatcher中的PHPStorm中做任何事情.
任何线索,我应该纠正,请?
asp*_*aga 39
对于那些想在IDE PHPStorm中配置LESS自动编译器的人,可以这样做:
cmd.exe用于Windows环境npm install -g less并等待LESS下载和安装.

.less文件中键入内容时,它将自动编译到.css您之前在File Watcher的设置对话框中定义的内容中.template.less如图所示的内容,并在完成任何样式之前将源文件下载到那里./*!
* Your commented code which wouldn't be removed in compiled .css because of "!" mark
*/
/*
* This comment will be removed in compiled .css file because of no "!" after "/*"
*/
// Core source files of Twitter's Bootstrap
@import "bootstrap/bootstrap";
@import "bootstrap/responsive";
// Core source file of Font Awesome Icons
@import "font-awesome/font-awesome";
// Connected plugins
@import "plugins/datepicker";
@import "plugins/redactor";
/*!
* General template styles below
*/
/* -------------------------------------------------------------- */
/**** PRECONFIG, OVERRIDES, VARIABLES, TYPOGRAPHY ****/
/* -------------------------------------------------------------- */
// VARIABLES.LESS Override
//---------------------------------------------------------------
// Colors
@whiteSmoke: #f5f5f5;
// Typo
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
@monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20492 次 |
| 最近记录: |