From 00abbfe71defc58a1ef5a48bdfa5b40792d00c5a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 18 Aug 2023 10:29:21 -0400 Subject: [PATCH] Revert "fix: [BD-46] skeleton.css for both dev and prod (#2531)" This reverts commit 7e96a0a6bba91f3a00a85d3fd40a7c3afb26b4d1. --- scss/core/core.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scss/core/core.scss b/scss/core/core.scss index 27ff012e87..e9196e6fc8 100644 --- a/scss/core/core.scss +++ b/scss/core/core.scss @@ -1,5 +1,3 @@ -@use "~react-loading-skeleton/dist/skeleton"; - @import "functions"; @import "variables"; @import "~bootstrap/scss/mixins"; @@ -7,6 +5,12 @@ @import "~bootstrap/scss/reboot"; @import "typography"; @import "grid"; +// The react-loading-skeleton package.json defines an 'exports' field which specifies a '.css' +// extension on this export. Without the '.css' on the end of this line, webpack can't find the file +// and the build fails. +// See https://webpack.js.org/guides/package-exports/ for more information on how webpack uses +// the 'exports' field. +@import "~react-loading-skeleton/dist/skeleton.css"; @import "~bootstrap/scss/transitions"; @import "utilities"; @import "~bootstrap/scss/media";