Skip to content

Commit

Permalink
Merge pull request #56 from TaTo30/fix/css-exports
Browse files Browse the repository at this point in the history
css export issue fixed
  • Loading branch information
TaTo30 authored Sep 13, 2023
2 parents f4e62eb + b81d224 commit dd44c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tato30/vue-pdf",
"version": "1.7.1",
"version": "1.7.4",
"description": "PDF viewer for Vue 3",
"author": {
"name": "Aldo Hernandez",
Expand All @@ -26,7 +26,7 @@
"import": "./dist/index.mjs",
"types": "./dist/types/index.d.ts"
},
"./**/*.css": "./dist/*.css",
"./*.css": "./dist/*.css",
"./src/*": "./src/*"
},
"main": "./dist/index.umd.js",
Expand Down

4 comments on commit dd44c09

@NetMango
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear Aldo.

The css export is still fails. I've noticed it when i want to use text-layer, the text is rendered below the pdf preview canvas. After a bit research i noticed the textLayer class is missing from the styles:

Screenshot_20230920_075736

And the rendered preview looks like this:

Screenshot_20230919_191721

I don't know what can be the correct export syntax? But when I copy the style.css to my Quasar project folder and include it to my project, the textLayer rendering will be good.

Thank you for your attention.

@TaTo30
Copy link
Owner Author

@TaTo30 TaTo30 commented on dd44c09 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Have you imported the styles using import '@tato30/vue-pdf/style.css' statement?

@NetMango
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no. The last version I've used was 1.3.4. This version didn't need it. Only after updating to 1.7.4 appeared my problem. I will try it, thank you.

@NetMango
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import '@tato30/vue-pdf/style.css'

-->

Missing "./style.css" export in "@tato30/vue-pdf" package 7:53:59 [vite] Internal server error: Missing "./style.css" export in "@tato30/vue-pdf" package

But if I add this line to your export:

"./style.css": "./dist/style.css",

It works!

Please sign in to comment.