zhongxuyang / vite-plugin-version-mark Goto Github PK
View Code? Open in Web Editor NEWAutomatically use `package version` / `git commit` / `custom` to be inserted into your project as a unique identifier for the project version.
Automatically use `package version` / `git commit` / `custom` to be inserted into your project as a unique identifier for the project version.
error during build:
Error: spawn ENOMEM
at ChildProcess.spawn (node:internal/child_process:413:11)
at spawn (node:child_process:700:9)
at Object.execFile (node:child_process:327:17)
at exec (node:child_process:225:25)
at /repo/node_modules/vite-plugin-version-mark/dist/vite/index.cjs:39:5
at new Promise (<anonymous>)
at getGitSHA (/repo/node_modules/vite-plugin-version-mark/dist/vite/index.cjs:38:10)
at analyticOptions (/repo/node_modules/vite-plugin-version-mark/dist/vite/index.cjs:59:41)
at transformIndexHtml (/repo/node_modules/vite-plugin-version-mark/dist/vite/index.cjs:84:17)
at applyHtmlTransforms (file:///repo/node_modules/vite/dist/node/chunks/dep-8609dc5d.js:37952:27)
at async Object.generateBundle (file:///repo/node_modules/vite/dist/node/chunks/dep-8609dc5d.js:37823:26)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Build step 'Execute shell' marked build as failure
New run name is '#229-haida-webapp-2nd'
Finished: FAILURE
When using the plugin, the following warning is displayed.
(vite-plugin-version-mark plugin) Sourcemap is likely to be incorrect: a plugin (vite-plugin-version-mark) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Just as this plugin can inject a <meta>
tag into index.html
it should as well allow to inject version
into manifest.json
.
No version field is available when you are building with this plugin and use vite
's library mode
如果我想使用 ifShortSHA
那我必须在使用之前设置 ifGitSHA: true
是否考虑 ifGitSHA
-> UseGitSHA?
It’s really unnecessary and looks ugly.
<meta name="application-name" content="TABLE_VIEWER_VERSION: 0b70aa6">
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.