From 873fefdd9eea496d06cd51c9b5143e8c39626f32 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 14 Jan 2023 11:32:57 +0100 Subject: [PATCH] Use relative import paths for SCSS node modules --- app/javascript/stylesheets.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/javascript/stylesheets.scss b/app/javascript/stylesheets.scss index 7517b244..5a8fc14a 100644 --- a/app/javascript/stylesheets.scss +++ b/app/javascript/stylesheets.scss @@ -8,21 +8,21 @@ // layout file, like app/views/layouts/application.html.slim $web-font-path: '//'; -@import '../../node_modules/bootswatch/dist/yeti/variables'; -@import '../../node_modules/bootstrap/scss/bootstrap'; -@import '../../node_modules/bootswatch/dist/yeti/bootswatch'; +@import '~bootswatch/dist/yeti/variables'; +@import '~bootstrap/scss/bootstrap'; +@import '~bootswatch/dist/yeti/bootswatch'; $fa-font-path: '~@fortawesome/fontawesome-free/webfonts/'; @import '~@fortawesome/fontawesome-free/scss/fontawesome'; -@import '../../node_modules/@fortawesome/fontawesome-free/scss/solid'; -@import '../../node_modules/@fortawesome/fontawesome-free/scss/regular'; -@import '../../node_modules/@fortawesome/fontawesome-free/scss/v4-shims'; +@import '~@fortawesome/fontawesome-free/scss/solid'; +@import '~@fortawesome/fontawesome-free/scss/regular'; +@import '~@fortawesome/fontawesome-free/scss/v4-shims'; $opensans-path: '~opensans-webkit/fonts/'; // Import the Open Sans font. We need to override the font-display property // to swap, otherwise the font will block rendering. This is done manually. // as no variable is included yet. // We inline the `opensans-webkit/src/sass/open-sans.scss` -@import '../../node_modules/opensans-webkit/src/sass/variables'; +@import '~opensans-webkit/src/sass/variables'; @mixin opensans-font($path, $name, $style, $weight, $variant) {