I'd configure phpStorm file watcher to generate CSS from a less. Curiously the css is generated (I'd set "Always" to "Show console"), but not saved. How can I solve it?
我将配置phpStorm文件观察器以从较少的生成CSS。好奇地生成了css(我将“Always”设置为“Show console”),但没有保存。我该如何解决?
1 个解决方案
#1
1
How can I solve it?
我该如何解决?
Why don't you used template provided by PhpStorm? It has all fields pre-filled -- you just edit them to fit your project setup. Right now you indeed have configured file watcher to just generate CSS.
你为什么不使用PhpStorm提供的模板?它预先填充了所有字段 - 您只需编辑它们以适合您的项目设置。现在你确实已经配置了文件观察器来生成CSS。
You have to either:
你必须:
- tick "Create output file from stdout" option (yep, lessc outputs compiled results this way)
- 勾选“从stdout创建输出文件”选项(是的,lessc以这种方式输出编译结果)
-
or provide generated file name as 2nd parameter in "Arguments" field, e.g.
--no-color $FileName$ $FileNameWithoutExtension$.css
- 或者在“参数”字段中提供生成的文件名作为第二参数,例如--no-color $ FileName $ $ FileNameWithoutExtension $ .css
#1
1
How can I solve it?
我该如何解决?
Why don't you used template provided by PhpStorm? It has all fields pre-filled -- you just edit them to fit your project setup. Right now you indeed have configured file watcher to just generate CSS.
你为什么不使用PhpStorm提供的模板?它预先填充了所有字段 - 您只需编辑它们以适合您的项目设置。现在你确实已经配置了文件观察器来生成CSS。
You have to either:
你必须:
- tick "Create output file from stdout" option (yep, lessc outputs compiled results this way)
- 勾选“从stdout创建输出文件”选项(是的,lessc以这种方式输出编译结果)
-
or provide generated file name as 2nd parameter in "Arguments" field, e.g.
--no-color $FileName$ $FileNameWithoutExtension$.css
- 或者在“参数”字段中提供生成的文件名作为第二参数,例如--no-color $ FileName $ $ FileNameWithoutExtension $ .css