fix: output app version number just like core (#962)
This commit is contained in:
committed by
GitHub
parent
e7dd7bdb2a
commit
bf0c5b6971
@ -1,6 +1,6 @@
|
||||
const path = require('path');
|
||||
|
||||
const coreVersion = require('./package.json').version;
|
||||
const appVersion = require('./package.json').version;
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const isTest = process.env.NODE_ENV === 'test';
|
||||
const isESM = process.env.NODE_ENV === 'esm';
|
||||
@ -59,7 +59,7 @@ function plugins() {
|
||||
[
|
||||
'transform-define',
|
||||
{
|
||||
STATIC_CMS_CORE_VERSION: `${coreVersion}`,
|
||||
STATIC_CMS_APP_VERSION: `${appVersion}`,
|
||||
},
|
||||
],
|
||||
[
|
||||
|
Reference in New Issue
Block a user