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)$/,
use: [{
loader: 'file-loader',
options: {
esModule: false,
name: '[name].[ext]',
}
}]
type: 'asset/inline',
},
]
},

View File

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

View File

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