Images are inline for webapp

This commit is contained in:
Paulo Gustavo Veiga 2022-01-12 19:00:59 -08:00
parent 42edccce0c
commit c80b538a12
3 changed files with 1 additions and 12 deletions

View File

@ -27,13 +27,7 @@ module.exports = {
}, },
{ {
test: /\.(png|jpe?g|gif|svg)$/, test: /\.(png|jpe?g|gif|svg)$/,
use: [{ type: 'asset/inline',
loader: 'file-loader',
options: {
esModule: false,
name: '[name].[ext]',
}
}]
}, },
] ]
}, },

View File

@ -9,7 +9,6 @@ module.exports = merge(common, {
devtool: 'source-map', devtool: 'source-map',
devServer: { devServer: {
contentBase: path.join(__dirname, 'dist'), contentBase: path.join(__dirname, 'dist'),
compress: true,
port: 3000, port: 3000,
hot: true, hot: true,
historyApiFallback: { historyApiFallback: {

View File

@ -2,7 +2,6 @@ const { merge } = require('webpack-merge');
const common = require('./webpack.common.js'); const common = require('./webpack.common.js');
const path = require('path'); const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
module.exports = merge(common, { module.exports = merge(common, {
mode: 'production', mode: 'production',
@ -11,9 +10,6 @@ module.exports = merge(common, {
minimize: true minimize: true
}, },
plugins: [ plugins: [
new CompressionPlugin({
test: /\.js(\?.*)?$/i
}),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
template: path.join(__dirname, 'public/index.html'), template: path.join(__dirname, 'public/index.html'),
templateParameters: { templateParameters: {