aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-03-07 12:23:18 +0300
committerGravatar Vitaly Takmazov2023-03-07 12:23:29 +0300
commitcfdb649ae18e25925dcc3c4acee6bc76754cc025 (patch)
treeeb5a6cfe80ca173338862d0d3fda28547ba639c8 /webpack.config.js
parent093012a913982fcf1c521be142172db673523c74 (diff)
Fix legacy build
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/webpack.config.js b/webpack.config.js
index c94ca661..7361552b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const ESLintPlugin = require('eslint-webpack-plugin');
-const CopyPlugin = require('copy-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
@@ -63,15 +62,16 @@ module.exports = (env, argv) => {
},
},
],
+ }, {
+ test: /\.(png|jpe?g|gif|svg)$/i,
+ use: [
+ {
+ loader: 'file-loader',
+ },
+ ],
}]
},
plugins: [
- new CopyPlugin({
- patterns: [{
- from: __dirname + '/node_modules/evil-icons/assets/sprite.svg',
- to: __dirname + '/src/main/resources/static/'
- }],
- }),
],
resolve: {
symlinks: false,
@@ -88,7 +88,7 @@ module.exports = (env, argv) => {
fix: false
}));
} else {
- config.plugins.push(new MiniCssExtractPlugin());
+ config.plugins.push(new MiniCssExtractPlugin({ filename: 'style.css' }));
}
config.optimization = {
minimize: !dev,