Skip to content

Commit b6c3e52

Browse files
authored
Create webpack.client.js
1 parent 1ef025b commit b6c3e52

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

webpack.client.js

+26
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)