mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-02 03:14:19 -07:00
Adding Trussworks USWDS React Wrapper (#67)
* removing unused js * Working for first load, second raises 'failed to SSR' without DEV_SSR enabled. We will need to fix this before prod
This commit is contained in:
parent
be319cbe0b
commit
13a4e5f47a
9 changed files with 1036 additions and 256 deletions
16
client/gatsby-node.js
Normal file
16
client/gatsby-node.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Disable references to window from trussworks/uswds
|
||||
// See here: https://www.gatsbyjs.com/docs/debugging-html-builds/#fixing-third-party-modules
|
||||
exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
|
||||
if (stage === "build-html" || stage === "develop-html") {
|
||||
actions.setWebpackConfig({
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /@trussworks\/react-uswds/,
|
||||
use: loaders.null(),
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue