From cfdb649ae18e25925dcc3c4acee6bc76754cc025 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 7 Mar 2023 12:23:18 +0300 Subject: Fix legacy build --- webpack.config.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'webpack.config.js') 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, -- cgit v1.2.3