what I\'am doing wrong when trying to compile the .less
files into .css
with PHPStorm File watcher ?
Here is the screenshot, (pls open
For those who want to configure LESS auto compiler inside their IDE PHPStorm, you can do it in that way:
cmd.exe
for Windows Environmentnpm install -g less
and wait for LESS to be downloaded and installed..less
file, it will be automatically compiled into .css
you've defined before in File Watcher's setting dialog.template.less
like shown in picture and subload the source files there before doing styling anything./*!
* 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;