bauhausjs / phantom-html2pdf

Node module to generate PDFs from HTML via PhantomJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I can't make the styles work

ejpg opened this issue · comments

It renders the html but without the styles.

My options:

var options = { 'css': __dirname + "/../src/assets/css/app.css", 'html': __dirname + "/../src/index.html" }

My folders:

+-- _routes
| +-- routes.js <-- where im calling the function
+-- _ src
| +-- index.html
| |+-- _assets
| ||+-- _css
| |||+-- app.css

How about:

var options = { 'css': __dirname + "/../src/_assets/_css/app.css", 'html': __dirname + "/../src/index.html" }

Seems like you have underscores in your path but not in the js