grunt-phantomcss-gitdiff icon indicating copy to clipboard operation
grunt-phantomcss-gitdiff copied to clipboard

How to define working directory

Open tero opened this issue 11 years ago • 3 comments

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?

tero avatar Sep 16 '14 10:09 tero

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.

NickGoward avatar Jan 28 '15 17:01 NickGoward

@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

dtothefp avatar Jan 28 '15 17:01 dtothefp

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

NickGoward avatar Jan 29 '15 13:01 NickGoward