一旦保存较少的文件,如何让less2css编译所有文件?

时间:2022-09-01 22:21:10

I have style.less which import "page.less". When something is changed in page.less, I have to turn to file style.less and save to let less2css compile so that the changes will take effect otherwise it doesn't because page.less is imported! So is there a way to let less2css compile all files when one of them is changed?

我有style.less导入“page.less”。在page.less中更改某些内容时,我必须转到文件样式。并保存以使less2css编译,以便更改生效,否则不会因为page.less被导入!那么当有一个文件被更改时,有没有办法让less2css编译所有文件?

1 个解决方案

#1


1  

Assuming you're already using the LESS-build you can use SublimOnSaveBuild. This would also work in other scopes.

假设您已经在使用LESS-build,您可以使用SublimOnSaveBuild。这也适用于其他范围。

Alternatively, there's a LESS-only package for Sublime Text as well.

或者,也有Sublime Text的LESS-only包。

#1


1  

Assuming you're already using the LESS-build you can use SublimOnSaveBuild. This would also work in other scopes.

假设您已经在使用LESS-build,您可以使用SublimOnSaveBuild。这也适用于其他范围。

Alternatively, there's a LESS-only package for Sublime Text as well.

或者,也有Sublime Text的LESS-only包。