Bumped dependencies and v1.5.0

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-11-07 15:46:36 +05:30
parent 956068d0d6
commit a3270041e3
8 changed files with 1182 additions and 4599 deletions

View file

@ -1,6 +1,7 @@
const HtmlWebpackPlugin = require('html-webpack-plugin');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const webpack = require('webpack');
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
entry: {
@ -38,15 +39,13 @@ module.exports = {
use: ['html-loader'],
},
{
test: /\.(svg|png|jpe?g|gif|otf|ttf)$/,
use: {
loader: 'file-loader',
options: {
name: '[name].[hash].[ext]',
outputPath: 'assets',
},
},
test: /\.(png|jpe?g|gif|otf|ttf)$/,
type: 'asset/resource',
},
{
test: /\.svg$/,
type: 'asset/inline',
}
],
},
plugins: [
@ -70,5 +69,12 @@ module.exports = {
new webpack.DefinePlugin({
'process.env': JSON.stringify(process.env),
}),
new CopyPlugin({
patterns: [
{ from: 'olm.wasm' },
{ from: '_redirects' },
{ from: 'config.json' },
],
}),
],
};