Files
Textual-Game/webpack.config.js

25 lines
625 B
JavaScript

const webpack = require("webpack");
const path = require("path");
const UglifyJSPlugin = require("uglifyjs-webpack-plugin");
module.exports = {
entry: {
app: "./src/front/index.js",
},
output: {
path: path.resolve(__dirname, "./public/js"),
filename: "[name]-bundle.js"
},
devServer: {
contentBase: path.resolve(__dirname, "./public/js"),
historyApiFallback: true,
inline: true,
open: true,
hot: true
},
plugins: [
new UglifyJSPlugin(),
new webpack.SourceMapDevToolPlugin({})
],
devtool: "eval-source-map"
};