From 5e05f22056cea705f1e91a2a4d1b5bd32a96a6b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=B8eg=20Pedersen?= Date: Thu, 7 Apr 2022 16:37:36 +0200 Subject: [PATCH 1/2] Fix exports section to allow imports in scss --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a7c2965..3157e8c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Swiffy slider is a touch enabled super lightweight html slider and carousel using browser scroll, css grid and scroll snap align and less than 1.5 kb javascript. Comes in css mode only version", "version": "1.5.2", "config": { - "version_short": "1.4" + "version_short": "1.5" }, "type": "module", "exports": { From 48d0edc4b187e50fb57c6f812c86a2e3ff2b3864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=B8eg=20Pedersen?= Date: Thu, 7 Apr 2022 16:38:49 +0200 Subject: [PATCH 2/2] Change exports to work for scss --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 3157e8c..cccd9d1 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,7 @@ "./css": { "import": "./dist/css/swiffy-slider.min.css" }, - "./src/swiffy-slider.css": { - "import": "./src/swiffy-slider.css" - } + "./src/": "./src/" }, "style": "dist/css/swiffy-slider.min.css", "browser": "dist/js/swiffy-slider.min.js",