2

I am building a site with Prepros using pug and have a directory structure similar to this:

/my-project
  +-dist
  | index.html
  | |
  | +-images
  |   logo.png
  |
  +-pug
    index.pug

I want to use absolute links in my final build. For example <img src="/images/logo.png">

However live preview sets to root directory one level above my /dist directory so absolute links are broken. I don't want my live preview to default to this view:

Screen shot of default live preview.

Is there a way to make Prepros live preview assume my /dist folder is the webroot rather than /my-project?

Tantalus
  • 397
  • 1
  • 3
  • 11
  • I can do this in VS Code's Live Server extension by editing the `liveServer.settings.root` setting. That's exactly what I want to do here in Prepros. – Tantalus Aug 23 '18 at 17:12

0 Answers0