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

Using --temp cli option breaks rendering of assets #124

Open
hinok opened this issue Apr 13, 2019 · 0 comments
Open

Using --temp cli option breaks rendering of assets #124

hinok opened this issue Apr 13, 2019 · 0 comments

Comments

@hinok
Copy link
Contributor

hinok commented Apr 13, 2019

Hey,

Reproduction repo: https://github.com/hinok/relaxed-broken-assets

By using --temp option like

relaxed src/test.pug build/test.pdf --temp build --build-once

assets are not rendered in generated pdf when defined in .pug files like below:

h1 Image should be rendered below
img(src='assets/image.jpg')

//- Uncomment to fix
//- img(src='./../src/assets/image.jpg')

style
  include:scss test.scss

So basically if asset cannot be rendered in .htm file, it will not be generated in pdf. Should not be path to assets somehow rewired when --temp option is used?

Zrzut ekranu 2019-04-13 o 16 50 27

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

1 participant