mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
c6a8797ddd
This improves the ephemeral command runner to allow for honoring of timeouts and proper handling of overriding the current working directory. It also fixes some partially transparent font colors in light mode, making them solid instead. It also updates the InputModel to be auto-observable and utilize some getters to ensure the cmdinput is getting updated whenever necessary state changes take place.
31 lines
1019 B
JavaScript
31 lines
1019 B
JavaScript
const { webDev, webProd } = require("./webpack/webpack.web.js");
|
|
const { electronDev, electronProd } = require("./webpack/webpack.electron.js");
|
|
|
|
module.exports = (env) => {
|
|
if (env.prod) {
|
|
console.log("using PROD (web+electron) webpack environment");
|
|
return [webProd, electronProd];
|
|
}
|
|
if (env["prod:web"]) {
|
|
console.log("using PROD (web) webpack environment");
|
|
return webProd;
|
|
}
|
|
if (env["prod:electron"]) {
|
|
console.log("using PROD (electron) webpack environment");
|
|
return electronProd;
|
|
}
|
|
if (env.dev) {
|
|
console.log("using DEV (web+electron) webpack environment");
|
|
return [webDev, electronDev];
|
|
}
|
|
if (env["dev:web"]) {
|
|
console.log("using DEV (web) webpack environment");
|
|
return webDev;
|
|
}
|
|
if (env["dev:electron"]) {
|
|
console.log("using DEV (electron) webpack environment");
|
|
return electronDev;
|
|
}
|
|
console.log("must specify a webpack environment using --env [dev|prod]");
|
|
};
|