ketr.photos/webpack.dev.js
James Ketrenos 09e07320a6 Update 'authenticate' email
Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
2020-02-04 21:07:49 -08:00

25 lines
607 B
JavaScript

const path = require("path");
const merge = require('webpack-merge')
const common = require('./webpack.common.js');
const webpack = require('webpack');
module.exports = merge(common, {
mode: "development",
devServer: {
contentBase: path.join(__dirname, "/"),
port: 8765,
publicPath: "http://localhost:8765/dist/",
hotOnly: true,
disableHostCheck: true,
historyApiFallback: true,
proxy: {
"/api": "http://localhost:8123/photos",
"/photos/*": {
target: "http://localhost:8123"
}
},
},
plugins: [new webpack.HotModuleReplacementPlugin()]
});