Harrison Deng
7917565438
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.
28 lines
620 B
JavaScript
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); |