Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgotten webpack-dev server config in distribution dir? #133

Open
neilyoung opened this issue Feb 24, 2020 · 0 comments
Open

Forgotten webpack-dev server config in distribution dir? #133

neilyoung opened this issue Feb 24, 2020 · 0 comments

Comments

@neilyoung
Copy link

Even though I'm using the release files there seems to be a "forgotten" (?) webpack-dev server config active:

image

Comes from this passage. I could only get rid of by patching it:

diff --git a/node_modules/leaflet-distortableimage/dist/leaflet.distortableimage.js b/node_modules/leaflet-distortableimage/dist/leaflet.distortableimage.js
index 4f030b1..24ee13b 100644
--- a/node_modules/leaflet-distortableimage/dist/leaflet.distortableimage.js
+++ b/node_modules/leaflet-distortableimage/dist/leaflet.distortableimage.js
@@ -4616,12 +4616,12 @@ AbstractXHRObject.prototype._start = function(method, url, payload, opts) {
     }
   };
 
-  try {
-    self.xhr.send(payload);
-  } catch (e) {
-    self.emit('finish', 0, '');
-    self._cleanup(false);
-  }
+  // try {
+  //   self.xhr.send(payload);
+  // } catch (e) {
+  //   self.emit('finish', 0, '');
+  //   self._cleanup(false);
+  // }
 };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant