gulpfile.js uswds.paths.dist.* path settings not honored #57
Labels
Affects: Compiling
Related to compiling Sass or JavaScript
Needs: Confirmation
We need to confirm that this is an issue
Describe the bug
When I attempt to customize USWDS settings by editing gulpfile.js to configure path settings (e.g., uswds.paths.dist.img), it causes an error because the path specified is not used.
Steps to reproduce the bug
Install USWDS and USWDS Compile
Run
npx gulp init
to install the initial USWDS Compile files, initially not changing any paths and test. You should see no errors in the developer console, and the images rendered and appropriate fonts used.Then delete any generated files (assets and sass) and try changing the paths to differ from the default generated paths, run
npx gulp init
again, update the path to styles.css in index.html, and re-test. You will see errors in the browser console where the images, fonts etc are not found due to uswds looking for them in unexpected places.Examples
Use something other than
img
for the dist.img pathUse something other than
fonts
for the dist.font pathUse only the two settings given in the documention as an example, with a slight change to use
src
since frameworks do not allow serving content outside of the src dir.I did not try changing dist.js or dis.css to other endings, but you get the idea.
Expected Behavior
The paths specified in gulpfile.js are used and work.
Test files used
gulpfile.js
index.html
server.js
The text was updated successfully, but these errors were encountered: