Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webpack: Inline the rest of webpack-helpers.

Anders Kaseorgd5176f4724cf
diff --git a/tools/webpack-helpers.ts b/tools/webpack-helpers.ts
deleted file mode 100644
index 5cd173b00da..00000000000
--- a/tools/webpack-helpers.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import {resolve} from "path";
-
-import {RuleSetUseItem} from "webpack";
-
-export const cacheLoader: RuleSetUseItem = {
- loader: "cache-loader",
- options: {
- cacheDirectory: resolve(__dirname, "../var/webpack-cache"),
- },
-};
diff --git a/tools/webpack.config.ts b/tools/webpack.config.ts
index 3f9308d0cc7..823bec06047 100644
--- a/tools/webpack.config.ts
+++ b/tools/webpack.config.ts
@@ -12,9 +12,15 @@ import _webpackDevServer from "webpack-dev-server";
import BundleTracker from "webpack4-bundle-tracker";
import DebugRequirePlugin from "./debug-require-webpack-plugin";
-import {cacheLoader} from "./webpack-helpers";
import assets from "./webpack.assets.json";
+const cacheLoader: webpack.RuleSetUseItem = {
+ loader: "cache-loader",
+ options: {
+ cacheDirectory: resolve(__dirname, "../var/webpack-cache"),
+ },
+};
+
export default (env?: string): webpack.Configuration[] => {
const production: boolean = env === "production";
const config: webpack.Configuration = {