From 6313135fc739817b3184839050416cfec3a73c48 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.sassrc.js b/.sassrc.js index 491ca4e70..4a33a75e1 100644 --- a/.sassrc.js +++ b/.sassrc.js @@ -1,9 +1,12 @@ -const path = require('path') +const path = require('path'); +const fs = require('fs-extra'); const CWD = process.cwd() +let uswdsPath = path.resolve(CWD, 'node_modules/@uswds/uswds/packages') +if (!fs.existsSync(uswdsPath)) 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