1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-26 12:15:26 +00:00

Remove unused isCi var

This commit is contained in:
Asher 2019-02-06 12:05:48 -06:00
parent 972806b210
commit f034aee26e
No known key found for this signature in database
GPG Key ID: 7BB4BA9C783D2BBC
3 changed files with 2 additions and 7 deletions

View File

@ -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",
});

View File

@ -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",

View File

@ -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",