From c670f144c21c144d26a95cf54f0a733dd81352a7 Mon Sep 17 00:00:00 2001 From: Yann Bertrand Date: Wed, 25 May 2016 21:24:57 +0200 Subject: [PATCH 1/2] Add the main key so it can be required with Browserify I want to use lazysizes with Browserify. This resolves the issue that says "Uncaught Error: Cannot find module 'lazysizes'". --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 759ee72c..69740b41 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "url": "git://github.com/aFarkas/lazysizes.git" }, "namespace": "lazySizes", + "main": "lazysizes.js", "browser": "lazysizes.js", "devDependencies": { "grunt": "~0.4.2", @@ -54,7 +55,7 @@ "respimage", "include", "ajax", - "img", + "img",m "imager", "imager.js", "picturefill", From 7671ecd0284b91cf8c77bc56721f414b4a5e599a Mon Sep 17 00:00:00 2001 From: Yann Bertrand Date: Mon, 30 May 2016 07:41:04 +0200 Subject: [PATCH 2/2] Fix package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 69740b41..2069e823 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "respimage", "include", "ajax", - "img",m + "img", "imager", "imager.js", "picturefill",