Is there a way to minimize script type="module"
part of an html?
#353
Answered
by
Scrum
frederikhors
asked this question in
Q&A
-
I have an .html file which contains this code: <script type="module">
import { start } from "/./start.js";
start({
target: document.querySelector("body"),
paths: { base: "", assets: "/." },
session: {},
host: location.host,
route: true,
hydrate: {
status: 200,
error: null,
nodes: [import("/./app/pages\\index.js")],
page: {
host: location.host
path: "/",
query: new URLSearchParams(""),
params: {},
},
},
// ... and more
});
</script> posthtml with htmlnano does a good job for the html, but NOT for this Is there a way to minimize this? |
Beta Was this translation helpful? Give feedback.
Answered by
Scrum
Apr 6, 2021
Replies: 1 comment
-
Hi, thanks for opening the discussion. This is a mistake in work |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
frederikhors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for opening the discussion. This is a mistake in work
htmlnano
and PR to solve the error.