Convert app into node version with express.

This commit is contained in:
2020-07-12 13:09:48 +02:00
parent dbeead9e99
commit b997194a96
12 changed files with 6683 additions and 100 deletions

View File

@@ -2,15 +2,16 @@ const webpack = require("webpack");
const path = require("path");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
let config = {
entry: "./src/index.js",
module.exports = {
entry: {
app: "./src/front/index.js",
},
output: {
path: path.resolve(__dirname, "./public"),
filename: "./bundle.js"
path: path.resolve(__dirname, "./public/js"),
filename: "[name]-bundle.js"
},
devServer: {
contentBase: path.resolve(__dirname, "./public"),
contentBase: path.resolve(__dirname, "./public/js"),
historyApiFallback: true,
inline: true,
open: true,
@@ -21,7 +22,4 @@ let config = {
new webpack.SourceMapDevToolPlugin({})
],
devtool: "eval-source-map"
}
module.exports = config;
};