rollup-plugin-html preload and attribute question for input #1580
Unanswered
dustensalinas
asked this question in
Q&A
Replies: 1 comment
-
Lack of response tells me what I need to know ;) Will look into making a PR or go more bare bones. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Nothing special here in regards to configuration:
Index.html:
<script defer type="module" src="./out-tsc/src/my-script.js"></script>
When we build this, 2 things happen:
First, a preload link is injected
<link rel="preload" href="./890a38e7.js" as="script" crossorigin="anonymous">
Second the script is transformed, and attributes not respected
<script type="module" src="./890a38e7.js"></script>
I was looking through the options and code and did not see options to control these behaviors. Offhand does anyone know if its possible to remove the preload (if anything I'd do that via headers), and second does anyone know of a similar option to have it inject attributes such as defer async etc?
Wanted to ask here for ideas before I really dove in and potentially made updates :D
Beta Was this translation helpful? Give feedback.
All reactions