mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
6016302814
* please sync * can select connection. now need add conection * latest for discussion * solved "autoselect connection" issue * ready for PR * pair programming, fix some issues with new tab flow * final updates for new connection flow. integrate add new connection with error messages. add an option to cr to not create the line/history (non-interactive use) --------- Co-authored-by: sawka
37 lines
904 B
JavaScript
37 lines
904 B
JavaScript
const webpack = require("webpack");
|
|
const merge = require("webpack-merge");
|
|
const common = require("./webpack.electron.js");
|
|
const moment = require("dayjs");
|
|
const VERSION = require("../version.js");
|
|
const path = require("path");
|
|
|
|
function makeBuildStr() {
|
|
let buildStr = moment().format("YYYYMMDD-HHmmss");
|
|
console.log("Prompt Electron " + VERSION + " build " + buildStr);
|
|
return buildStr;
|
|
}
|
|
|
|
const BUILD = makeBuildStr();
|
|
|
|
let merged = merge.merge(common, {
|
|
mode: "production",
|
|
output: {
|
|
path: path.resolve(__dirname, "../dist"),
|
|
filename: "[name].js",
|
|
},
|
|
devtool: "source-map",
|
|
optimization: {
|
|
minimize: true,
|
|
},
|
|
});
|
|
|
|
merged.plugins.push(
|
|
new webpack.DefinePlugin({
|
|
__PROMPT_DEV__: "false",
|
|
__PROMPT_VERSION__: JSON.stringify(VERSION),
|
|
__PROMPT_BUILD__: JSON.stringify(BUILD),
|
|
})
|
|
);
|
|
|
|
module.exports = merged;
|