Remove context: __dirname as its the default

Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2021-01-07 11:22:50 +08:00
1 parent cb1a3bc80d
commit ba6acfb20a
2 files changed
-2

No files matched your search

-1
View File
@@ -9,7 +9,6 @@ export default function (): webpack.Configuration {
console.info("WEBPACK:main", vars); console.info("WEBPACK:main", vars);
return { return {
context: __dirname,
target: "electron-main", target: "electron-main",
mode: isProduction ? "production" : "development", mode: isProduction ? "production" : "development",
devtool: isProduction ? "source-map" : "eval-source-map", devtool: isProduction ? "source-map" : "eval-source-map",
-1
View File
@@ -18,7 +18,6 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura
} }
return { return {
context: __dirname,
target: "electron-renderer", target: "electron-renderer",
devtool: isProduction ? "source-map" : "eval-source-map", devtool: isProduction ? "source-map" : "eval-source-map",
// ignore because there is no @types/webpack-dev-server for v4 yet // ignore because there is no @types/webpack-dev-server for v4 yet