How to define working directory
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?
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 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 I will take a look at grunt-resemble-cli. Thanks