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 6313135
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .sassrc.js
Original file line number Diff line number Diff line change
@@ -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
]
}

0 comments on commit 6313135

Please sign in to comment.