From 0127d9bb4f7079ae55ba79559d9fafab85e972d2 Mon Sep 17 00:00:00 2001 From: Hanbyul Jo Date: Thu, 11 Jul 2024 13:29:47 -0400 Subject: [PATCH] Conditional path for USWDS scss --- .sassrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.sassrc.js b/.sassrc.js index 491ca4e70..f6d0e6f3a 100644 --- a/.sassrc.js +++ b/.sassrc.js @@ -1,9 +1,11 @@ const path = require('path') const CWD = process.cwd() +let uswdsPath = path.resolve(CWD, 'node_modules/@uswds/uswds/packages') +if (!CWD.includes('ui')) uswdsPath = path.resolve(CWD,'.veda/ui', 'node_modules/@uswds/uswds/packages') module.exports = { "includePaths": [ - path.resolve(CWD, 'node_modules/@uswds/uswds/packages') + uswdsPath ] } \ No newline at end of file