File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,13 @@ import { glob } from "glob"
6
6
import { updateCodeData } from "./scripts/update-code-data/update-code-data"
7
7
import { organizeCodeData } from "./scripts/update-code-data/organize-code-data"
8
8
import { sortCodeData } from "./scripts/update-code-data/sort-code-data"
9
- import redirects from "./redirects.json"
10
9
import { RelativeCiAgentWebpackPlugin } from "@relative-ci/agent"
11
10
import { StatsWriterPlugin } from "webpack-stats-plugin"
12
11
13
12
require ( "dotenv" ) . config ( {
14
13
path : `.env.${ process . env . NODE_ENV } ` ,
15
14
} )
16
15
17
-
18
16
export const createSchemaCustomization : GatsbyNode [ "createSchemaCustomization" ] =
19
17
async ( { actions } ) => {
20
18
const gql = String . raw
@@ -547,9 +545,7 @@ export const onCreateWebpackConfig: GatsbyNode["onCreateWebpackConfig"] =
547
545
assert : "assert/" ,
548
546
} ,
549
547
} ,
550
- } )
551
- if ( stage === "build-javascript" ) {
552
- actions . setWebpackConfig ( {
548
+ ...( stage === "build-javascript" && {
553
549
plugins : [
554
550
new RelativeCiAgentWebpackPlugin ( ) ,
555
551
new StatsWriterPlugin ( {
@@ -562,5 +558,5 @@ export const onCreateWebpackConfig: GatsbyNode["onCreateWebpackConfig"] =
562
558
} ) ,
563
559
] ,
564
560
} )
565
- }
561
+ } )
566
562
}
You can’t perform that action at this time.
0 commit comments