webstorm configured to automatically compile less

Configuration parameters:

$FileParentDir(less)$\less\$FileDirPathFromParent(less)$\$FileName$
$FileParentDir(less)$\css\$FileDirPathFromParent(less)$\$FileNameWithoutExtension$.css

 

Parameter Description:

For example, a project called project, less files we place in project / public / less / manage / style.less

$ FileParentDir (less) $ is to obtain less path to the directory, that is, project / public

$ FileDirPathFromParent (less) $ is the path less get less file to a directory, that is, manage

$ FileNameWithoutExtension $ is to get less file name without the suffix, which is the style

After splicing the above, it generated content project / public / css / manage / style.css

Guess you like

Origin blog.csdn.net/dawnli1014/article/details/95313670