mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-06-10 02:34:51 +00:00
Upload code
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import {getVersion} from './getVersion.mjs';
|
||||
|
||||
/**
|
||||
* Somehow inject app version to vite build context
|
||||
* @return {import('vite').Plugin}
|
||||
*/
|
||||
export const injectAppVersion = () => ({
|
||||
name: 'inject-version',
|
||||
config: () => {
|
||||
process.env.VITE_APP_VERSION = getVersion();
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user