Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

compiling viewer.less fails #61

Open
churti opened this issue Sep 1, 2017 · 1 comment
Open

compiling viewer.less fails #61

churti opened this issue Sep 1, 2017 · 1 comment

Comments

@churti
Copy link

churti commented Sep 1, 2017

Hello everyone,
until now i use angular-pdfjs-viewer 0.7.4 and everything works fine.
Now i was upgrading it (tryed it with both 0.8.0 and 0.8.1) and my build fails.
At the start of my build process i recompile the viewer.less with the global variable as it stands in the advanced configuration in the readme:
"lessc --global-var=\"pdfjsImagePath='../pdfjs'\" bower_components\\pdf.js-viewer\\viewer.less bower_components\\pdf.js-viewer\\viewer.css

As i said with 0.7.4 everything was ok. Now i get this:

SyntaxError: expected ')' got '/' in on line 2, column 4312:

And this fails:
border-image:url(@pdfjsImagePath/shadow.png)

@hurnell
Copy link

hurnell commented May 24, 2024

This fails for all references to @pdfjsImagePath they all need to be enclosed in curly braces (78 occurance)

border-image:url(@pdfjsImagePath/shadow.png)

needs to become

border-image:url(@{pdfjsImagePath}/shadow.png)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants