mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-28 22:37:08 +03:00
Fix import in html template.
This commit is contained in:
parent
cc5c6a07a3
commit
39ec4f20cc
@ -35,10 +35,15 @@ function templateHtml(devMode, userHeadTagsTemplate) {
|
||||
<!-- PLACEHOLDER_PRELOADS -->`
|
||||
}
|
||||
<script defer src="/elm.js" type="text/javascript"></script>
|
||||
<script defer src="${path.join(
|
||||
__dirname,
|
||||
"../static-code/elm-pages.js"
|
||||
)}" type="module"></script>
|
||||
${
|
||||
devMode
|
||||
? `<script src="/elm-pages.js" type="module"></script>
|
||||
`
|
||||
: `<script defer src="${path.join(
|
||||
__dirname,
|
||||
"../static-code/elm-pages.js"
|
||||
)}" type="module"></script>`
|
||||
}
|
||||
${indent(userHeadTagsTemplate({ cliVersion }))}
|
||||
<!-- PLACEHOLDER_HEAD_AND_DATA -->
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user