mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
centralize version info for building. change 'SH' vars to 'PROMPT'
This commit is contained in:
+4
-4
@@ -2,8 +2,8 @@ const webpack = require('webpack');
|
||||
const merge = require('webpack-merge');
|
||||
const common = require('./webpack.common.js');
|
||||
const moment = require("dayjs");
|
||||
const VERSION = "v0.1.1";
|
||||
const path = require("path");
|
||||
const VERSION = require("./version.js");
|
||||
|
||||
function makeBuildStr() {
|
||||
let buildStr = moment().format("YYYYMMDD-HHmmss");
|
||||
@@ -34,9 +34,9 @@ if (BundleAnalyzerPlugin != null) {
|
||||
merged.plugins.push(new BundleAnalyzerPlugin());
|
||||
}
|
||||
merged.plugins.push(new webpack.DefinePlugin({
|
||||
__SHDEV__: "false",
|
||||
__SHVERSION__: JSON.stringify(VERSION),
|
||||
__SHBUILD__: JSON.stringify(BUILD),
|
||||
__PROMPT_DEV__: "false",
|
||||
__PROMPT_VERSION__: JSON.stringify(VERSION),
|
||||
__PROMPT_BUILD__: JSON.stringify(BUILD),
|
||||
}));
|
||||
|
||||
module.exports = merged;
|
||||
|
||||
Reference in New Issue
Block a user