Skip to content

Commit

Permalink
Conditional path for USWDS scss
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Jul 11, 2024
1 parent e443338 commit 0127d9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .sassrc.js
Original file line number Diff line number Diff line change
@@ -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
]
}

0 comments on commit 0127d9b

Please sign in to comment.