uswds-site icon indicating copy to clipboard operation
uswds-site copied to clipboard

USWDS-Site - Bug: Webpack examples do not match

Open mahoneycm opened this issue 1 year ago • 0 comments

Describe the bug

We have two examples of a webpack config on the site. One on the Documentation page, and another on the Migrating to 3.0 page.

There is a discrepancy between the two examples. In the includePaths array, both include "./node_modules/@uswds/uswds/packages" but only the migration page includes "./node_modules/@uswds".

Underneath the example our guidance does read

This array needs to include "./node_modules/@uswds/uswds/packages".

Expected Behavior

The guidance / code snippets should match.

We should verify if the additional line ("./node_modules/@uswds",) is necessary for proper webpack compilation.

If so, add it to the Documentation page example.

If not, consider removing from the Migrating to 3.0 page.

Screenshots

Documentation page example:

image

Migrating to 3.0 page example: image

Additional context

Related issue #2121

Code of Conduct

mahoneycm avatar Oct 18 '23 14:10 mahoneycm