mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 09:41:26 -08:00
16 lines
500 B
JavaScript
16 lines
500 B
JavaScript
|
// 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(),
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
})
|
||
|
}
|
||
|
}
|