🔧 Changing up the dist path
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = (env) => {
|
|||||||
return {
|
return {
|
||||||
entry: ["babel-polyfill", "./src/client/index.tsx"],
|
entry: ["babel-polyfill", "./src/client/index.tsx"],
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, outputDirectory),
|
path: path.resolve(__dirname, outputDirectory),
|
||||||
filename: "./js/[name].bundle.js",
|
filename: "./js/[name].bundle.js",
|
||||||
},
|
},
|
||||||
devtool: "source-map",
|
devtool: "source-map",
|
||||||
@@ -72,6 +72,7 @@ module.exports = (env) => {
|
|||||||
port: 3050,
|
port: 3050,
|
||||||
open: true,
|
open: true,
|
||||||
hot: true,
|
hot: true,
|
||||||
|
contentBase: "./dist"
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api/**": {
|
"/api/**": {
|
||||||
target: "http://localhost:8050",
|
target: "http://localhost:8050",
|
||||||
|
|||||||
Reference in New Issue
Block a user