Convert app into node version with express.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user