forked from wp-graphql/wp-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
32 lines (30 loc) · 931 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const defaults = require("@wordpress/scripts/config/webpack.config");
const path = require("path");
module.exports = {
...defaults,
entry: {
index: path.resolve(process.cwd(), "packages/wpgraphiql", "index.js"),
app: path.resolve(process.cwd(), "packages/wpgraphiql", "app.js"),
graphiqlQueryComposer: path.resolve(
process.cwd(),
"packages/graphiql-query-composer",
"index.js"
),
graphiqlAuthSwitch: path.resolve(
process.cwd(),
"packages/graphiql-auth-switch",
"index.js"
),
graphiqlFullscreenToggle: path.resolve(
process.cwd(),
"packages/graphiql-fullscreen-toggle",
"index.js"
),
},
externals: {
react: "React",
"react-dom": "ReactDOM",
wpGraphiQL: "wpGraphiQL",
graphql: "wpGraphiQL.GraphQL",
},
};