mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-12-04 20:47:33 +00:00
13 lines
284 B
JavaScript
13 lines
284 B
JavaScript
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();
|
|
},
|
|
});
|