Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebStorm 自动编译 LESS 产出 CSS 的配置设置 #85

Open
mishe opened this issue Jan 11, 2016 · 0 comments
Open

WebStorm 自动编译 LESS 产出 CSS 的配置设置 #85

mishe opened this issue Jan 11, 2016 · 0 comments

Comments

@mishe
Copy link
Owner

mishe commented Jan 11, 2016

找了很多资料结果发现很多配置都是不成功的,只能琢磨着自己整整了。

配置如下:

打开WebStorm,点File-->Settings,找到File Watchers,点右侧的“+”,选择LESS,更改对应项的设置如下:

Program:E:\nodejs\node.exe

Arguments:E:\nodejs\node_modules\less\bin\lessc $FileName$ $FileDir$\css$FileNameWithoutAllExtensions$.css

Working directory:$FileDir$

Output paths to refresh:为空就好了

之后,所有的less文件,在创建和修改时都会自动编译成对应文件名的css文件,放入工程文件的css目录下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant