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

How to define working directory #3

Open
tero opened this issue Sep 16, 2014 · 3 comments
Open

How to define working directory #3

tero opened this issue Sep 16, 2014 · 3 comments

Comments

@tero
Copy link

tero commented Sep 16, 2014

My build process generates html files from templates and generated files are stored to .tmp directory. Connect server is configured to serve files also from .tmp directory so file .tmp/index.html is served with url http://localhost:9000/index.html.

I can't figure out how grunt-phantomcss-gitdiff should be configured to match my case. If I set src to '.tmp/{,*/}.html' url has also .tmp-part. Server root doesn't seem to change anything here. How I should configure my phantomcss-gitdiff to look files without directory part?

@NickGoward
Copy link

Same kind of issue here.

  • HTML file is located in /public/foo.html
  • Web root is /public so page is viewable in a browser at localhost://foo.html

But no matter what I try, grunt-phantomcss-gitdiff attempts to screenshot localhost://public/foo.html

serverRoot only seems to change the screenshot filename as far as I can see.

@dtothefp
Copy link
Owner

@NickGoward I will have a look but I actually deprecated this project and merged it here https://github.com/dtothefp/grunt-resemble-cli. This still uses some of the phantomcss under the hood but can also compare images using GraphicsMagic which is much better

@NickGoward
Copy link

@dtothefp I will take a look at grunt-resemble-cli. Thanks

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

3 participants