简体   繁体   English

在服务模式下将闭包样式表与Plovr一起使用

[英]Using Closure Stylesheets with Plovr in serve mode

i am using plovr for developing a closure application. 我正在使用plovr开发封闭应用程序。 and that i am often using plovr in serve mode. 而且我经常在服务模式下使用plovr。 from this source code of plovr and this post from the author it seems that plovr also supports compiling closure stylesheets (gss). 从plovr的源代码和作者的帖子中可以看出,plovr还支持编译闭包样式表(gss)。

with that in mind, i am specifying the bare minimum in my plovr config file to get this working. 考虑到这一点,我在我的plovr配置文件中指定了最低要求以使其正常工作。 but can't figure out what url i should use in my page to load the compiled css. 但无法弄清楚我应该在页面中使用哪个URL来加载已编译的CSS。

for example, while plovr is running the compiled js can be fetched with 例如,在plovr运行时,可以使用以下命令获取已编译的js:

http://localhost:9810/compile?id=project_id

i guess fetching the compiled css can be done with something like the following: 我猜想可以通过以下方式来获取已编译的CSS:

http://localhost:9810/view?id=project_id&name=output.css

but unfortunately can't figure out the right documentation for it. 但遗憾的是找不到合适的文档。 what is the approach to achieve this? 实现此目标的方法是什么?

also is it possible to make use of the css class name renaming feature through plovr? 还可以通过plovr使用CSS类名重命名功能吗?

http://localhost:9810/css/project_id/

did the trick. 做到了。 looks like i need not specify the output css file name. 看起来我不需要指定输出CSS文件名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM