aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
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,