Skip to content

Commit af7a7d0

Browse files
committed
aaa
1 parent eb9b4d6 commit af7a7d0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

gatsby-node.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ import { glob } from "glob"
66
import { updateCodeData } from "./scripts/update-code-data/update-code-data"
77
import { organizeCodeData } from "./scripts/update-code-data/organize-code-data"
88
import { sortCodeData } from "./scripts/update-code-data/sort-code-data"
9-
import redirects from "./redirects.json"
109
import { RelativeCiAgentWebpackPlugin } from "@relative-ci/agent"
1110
import { StatsWriterPlugin } from "webpack-stats-plugin"
1211

1312
require("dotenv").config({
1413
path: `.env.${process.env.NODE_ENV}`,
1514
})
1615

17-
1816
export const createSchemaCustomization: GatsbyNode["createSchemaCustomization"] =
1917
async ({ actions }) => {
2018
const gql = String.raw
@@ -547,9 +545,7 @@ export const onCreateWebpackConfig: GatsbyNode["onCreateWebpackConfig"] =
547545
assert: "assert/",
548546
},
549547
},
550-
})
551-
if (stage === "build-javascript") {
552-
actions.setWebpackConfig({
548+
...(stage === "build-javascript" && {
553549
plugins: [
554550
new RelativeCiAgentWebpackPlugin(),
555551
new StatsWriterPlugin({
@@ -562,5 +558,5 @@ export const onCreateWebpackConfig: GatsbyNode["onCreateWebpackConfig"] =
562558
}),
563559
],
564560
})
565-
}
561+
})
566562
}

0 commit comments

Comments
 (0)