mirror of https://git.tuxpa.in/a/code-server.git
Remove unused isCi var
This commit is contained in:
parent
972806b210
commit
f034aee26e
|
@ -6,6 +6,7 @@ const HappyPack = require("happypack");
|
||||||
|
|
||||||
module.exports = merge({
|
module.exports = merge({
|
||||||
devtool: "none",
|
devtool: "none",
|
||||||
|
mode: "development",
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
@ -56,6 +57,4 @@ module.exports = merge({
|
||||||
"process.env.CLI": `"${process.env.CLI ? "true" : "false"}"`,
|
"process.env.CLI": `"${process.env.CLI ? "true" : "false"}"`,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
}, require("../../scripts/webpack.general.config")(), {
|
}, require("../../scripts/webpack.general.config")());
|
||||||
mode: "development",
|
|
||||||
});
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ const vsFills = path.join(root, "packages/vscode/src/fill");
|
||||||
const merge = require("webpack-merge");
|
const merge = require("webpack-merge");
|
||||||
|
|
||||||
module.exports = merge({
|
module.exports = merge({
|
||||||
devtool: "source-map",
|
|
||||||
entry: "./packages/web/src/index.ts",
|
entry: "./packages/web/src/index.ts",
|
||||||
output: {
|
output: {
|
||||||
chunkFilename: "[name]-[hash:6].bundle.js",
|
chunkFilename: "[name]-[hash:6].bundle.js",
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const environment = process.env.NODE_ENV || "development";
|
const environment = process.env.NODE_ENV || "development";
|
||||||
const isCi = typeof process.env.CI !== "undefined";
|
|
||||||
const HappyPack = require("happypack");
|
const HappyPack = require("happypack");
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
|
@ -10,8 +9,6 @@ const root = path.join(__dirname, "..");
|
||||||
module.exports = (options = {}) => ({
|
module.exports = (options = {}) => ({
|
||||||
context: root,
|
context: root,
|
||||||
devtool: "source-map",
|
devtool: "source-map",
|
||||||
// entry: "./packages/app/src/index.ts",
|
|
||||||
mode: isCi ? "production" : "development",
|
|
||||||
module: {
|
module: {
|
||||||
rules: [{
|
rules: [{
|
||||||
loader: "string-replace-loader",
|
loader: "string-replace-loader",
|
||||||
|
|
Loading…
Reference in New Issue