Replies: 2 comments 2 replies
-
I'm currently converting my old PDFs to use this package, I found no issue when using TailwindCss. I think you'll just need to import your CSS file. The size of the downloaded files is pretty much the same as my old files. here's my layout file <html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@vite(['resources/css/app.css'])
<style>
html {
-webkit-print-color-adjust: exact;
}
</style>
</head>
<body>
...
</body>
</html> Notice that I had to apply |
Beta Was this translation helpful? Give feedback.
-
In my case I had to point to <head>
<meta charset="UTF-8">
<title>Some Title</title>
@vite('resources/js/app.js')
</head> As I use vue for my frontend, which imports the |
Beta Was this translation helpful? Give feedback.
-
Hey team,
I'm wondering how we can use the Tailwind feature mentioned in the Twitter post. In particular, i'm not sure how to have Tailwind build when the PDF is generated so it only includes classes used in the blade file?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions