From 46e145baba56f8f893d38e75a96782768e59a15a Mon Sep 17 00:00:00 2001 From: MrTimscampi Date: Tue, 31 Mar 2020 16:56:12 +0200 Subject: [PATCH] Add inline sourcemaps to webpack --- src/scripts/site.js | 2 +- webpack.dev.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/site.js b/src/scripts/site.js index c13b7b395d..b014b7ae04 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -288,7 +288,7 @@ var AppInfo = {}; if (!AppInfo.isNativeApp) { console.debug("loading ApiClient singleton"); - return require(["apiclient"], function (apiClientFactory) { + return require(["apiclient"], function (apiClientModule) { console.debug("creating ApiClient singleton"); var apiClient = new apiClientModule.ApiClient(Dashboard.serverAddress(), apphost.appName(), apphost.appVersion(), apphost.deviceName(), apphost.deviceId()); diff --git a/webpack.dev.js b/webpack.dev.js index d0a8c69b8f..b4bcf87b7e 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -9,7 +9,7 @@ module.exports = merge(common, { path: path.resolve(__dirname, "dist"), libraryTarget: "amd-require" }, - devtool: '#inline-source-map', + devtool: 'inline-source-map', module: { rules: [ {