--css-dir 是否始终必须相对于项目目录?
我正在使用 compass 0.10.4
我正在运行一个 compass 命令,我希望它将它的输出输出到 当我运行手表而不是项目目录时。
有没有办法指定绝对路径而不是路径 相对于你想要 css 输出到的目录?
我试图将编译后的 css 输出到该目录:
/home/leeand00/leeand00.com/wp-content/themes/coffeeSunrise
但它正在输出到
<compass-project-dir>/home/leeand00/leeand00.com/wp-content/themes/
coffeeSunrise
我尝试使用 --css- 指定编译后的 css 输出目录 命令行上的目录。
的 css_dir 的值更改为
/home/leeand00/leeand00.com/wp-content/wp-content/themes/coffeeSunrise
我还尝试将config.rb 中 不指定 --css-dir 参数,我得到相同的结果。
我意识到这可以使用 ../../../ 指定(与 需要)但因为我并不总是知道我的部署点在哪里 这是次优的。
I'm using compass 0.10.4
I'm running a compass command and I want it to put it's output to the
server when I run a watch instead of to the project directory.
Is there any way of specifying an absolute path instead of a path
relative to the directory you want the css output to?
I'm trying to have my compiled css output to the directory:
/home/leeand00/leeand00.com/wp-content/themes/coffeeSunrise
but instead it is being output to
<compass-project-dir>/home/leeand00/leeand00.com/wp-content/themes/
coffeeSunrise
I've tried specifying the compiled css output directory using --css-
dir on the command line.
I've also tried changing the value of css_dir to
/home/leeand00/leeand00.com/wp-content/wp-content/themes/coffeeSunrise
in config.rb and
not specifying the --css-dir argument and I get the same result.
I realize that this can be specified using ../../../ (as many times as
needed) but since I don't always know where my deployment point would
be this is sub optimal.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Chris 在最新版本中添加了此功能,但是在新版本发布之前,你必须自己编译。
Chris added this functionality to the latest build, but until the new version is released, you have to compile it yourself.
只是提示:
对于 Windows 操作系统,您可以在下面添加
Just a tip:
For windows os you can add below