We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef025b commit b6c3e52Copy full SHA for b6c3e52
webpack.client.js
@@ -0,0 +1,26 @@
1
+const path = require("path");
2
+const HtmlWebpackPlugin = require("html-webpack-plugin");
3
+
4
+module.exports = {
5
6
+ entry: {
7
+ main: "./src/index.js"
8
+ },
9
+ output: {
10
+ filename: "main.js",
11
+ path: path.resolve("dist/client")
12
13
+ plugins: [
14
+ new HtmlWebpackPlugin({
15
+ template: "./src/index.html"
16
+ })
17
+ ],
18
+ devServer: {
19
+ proxy: {
20
+ "/.netlify": {
21
+ target: "http://localhost:9000",
22
+ pathRewrite: { "^/.netlify/functions": "" }
23
+ }
24
25
26
+};
0 commit comments