properly encode the version
This commit is contained in:
parent
5b53411601
commit
08e6c0de0d
@ -1,6 +1,6 @@
|
||||
<div class="header">
|
||||
<h2>Welcome to the docks!</h2>
|
||||
<div>version {`import.meta.env.PACKAGE_VERSION`}</div>
|
||||
<div>version {import.meta.env.PACKAGE_VERSION}</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
@ -11,8 +11,9 @@ const config = {
|
||||
ssr: {},
|
||||
optimizeDeps: {},
|
||||
define: {
|
||||
"import.meta.env.PACKAGE_VERSION":
|
||||
'"' + git.gitDescribeSync().semverString + '"',
|
||||
"import.meta.env.PACKAGE_VERSION": JSON.stringify(
|
||||
git.gitDescribeSync().semverString
|
||||
),
|
||||
"import.meta.env.HOMEPAGE": JSON.stringify(packageJson.homepage),
|
||||
"import.meta.env.BUGS": JSON.stringify(packageJson.bugs.url),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user