Skip to content

Commit

Permalink
echamos patras
Browse files Browse the repository at this point in the history
  • Loading branch information
IUrreta committed Feb 17, 2025
1 parent 4229dad commit 804c7ed
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 30 deletions.
Binary file added assets/images/KA-min.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/KA.png
Binary file not shown.
Binary file added assets/images/LH-min.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/LH.png
Binary file not shown.
Binary file added assets/images/MV-min.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/MV.png
Binary file not shown.
6 changes: 3 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5031,15 +5031,15 @@ <h3 class="modal-title bold-font">Comparison data selection</h3>
</div>
<div class="mod-drivers">
<div class="small-rectangle lh-rectangle" style="--order: 1">
<img src="../assets/images/LH.png" alt="" style="--order: 4">
<img src="../assets/images/LH-min.png" alt="" style="--order: 4">
</div>
<div class="lh-gradient" style="--order: 7"></div>
<div class="high-rectangle mv-rectangle" style="--order: 3">
<img src="../assets/images/MV.png" alt="" style="--order: 6">
<img src="../assets/images/MV-min.png" alt="" style="--order: 6">
</div>
<div class="mv-gradient" style="--order: 8"></div>
<div class="small-rectangle ka-rectangle" style="--order: 2">
<img src="../assets/images/KA.png" alt="" style="--order: 5">
<img src="../assets/images/KA-min.png" alt="" style="--order: 5">
</div>
<div class="ka-gradient" style="--order: 9"></div>
</div>
Expand Down
36 changes: 9 additions & 27 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ImageMinimizerPlugin = require('image-minimizer-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const webpack = require('webpack');
const packageJson = require('./package.json');


module.exports = {
mode: 'production',
mode: 'development',

entry: './src/index.js', // Archivo de entrada principal

Expand All @@ -24,31 +24,13 @@ module.exports = {
new MiniCssExtractPlugin({
filename: 'styles.css',
}),
new ImageMinimizerPlugin({
// (1) Indica que vas a utilizar sharpMinify en lugar de imagemin
minimizer: {
implementation: ImageMinimizerPlugin.sharpMinify,
options: {
// (2) encodeOptions define cómo quieres comprimir
encodeOptions: {
// Convierte/optimiza PNG
png: {
quality: 80, // 0-100
compressionLevel: 8,
adaptiveFiltering: true,
},
// Convierte/optimiza JPG
jpeg: {
quality: 80, // 0-100
},
// Convierte/optimiza WebP (si quieres forzar conversión a WebP, ver más abajo)
webp: {
quality: 80,
},
// etc.
},
},
},
new CopyWebpackPlugin({
patterns: [
{
from: 'assets/images', // ajusta esta ruta a donde tengas tus imágenes
to: 'assets/images'
}
]
}),
new webpack.DefinePlugin({
APP_VERSION: JSON.stringify(packageJson.version),
Expand Down

0 comments on commit 804c7ed

Please sign in to comment.