epsilon_webui/webpack.prod.js
Harrison Deng 7917565438 Prepared website for production and going live.
Added website title.

Added Unavailability message to steam page.

Added image lossy image minimizers to webpack to production webpack configuration.

Added source mapping to development webpack configuration.

Renamed router paths.
2022-01-17 04:17:21 -06:00

28 lines
620 B
JavaScript

const { merge } = require("webpack-merge");
const common = require("./webpack.common");
const ImageMinimizerPlugin = require("image-minimizer-webpack-plugin");
let config = {
mode: "production",
optimization: {
minimize: true,
usedExports: true,
minimizer: [
new ImageMinimizerPlugin({
minimizer: {
implementation: ImageMinimizerPlugin.squooshMinify,
options: {
encodeOptions: {
pngquant: {
strip: true,
}
},
},
},
}),
],
},
};
module.exports = merge(common, config);