From 0d027179117c45604146b1ba280a3708649b03c4 Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 29 Apr 2024 18:52:13 +0300 Subject: [PATCH] remove plugins from webpack config --- src/rfront/front/webpack.config.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/rfront/front/webpack.config.js b/src/rfront/front/webpack.config.js index b144c78..db4ee12 100644 --- a/src/rfront/front/webpack.config.js +++ b/src/rfront/front/webpack.config.js @@ -1,9 +1,9 @@ const CopyWebpackPlugin = require('copy-webpack-plugin'); -const config = require('./src/config'); +const config = require('./config'); module.exports = { mode: config.debug ? 'development' : 'production', - entry: `${__dirname}/src/frontend/index.js`, + entry: `${__dirname}/front/index.js`, module: { rules: [ { @@ -17,13 +17,5 @@ module.exports = { filename: 'index.js', path: `${__dirname}/public`, publicPath: '/', - }, - plugins: [ - new CopyWebpackPlugin({ - patterns: [ - { from: 'node_modules/xterm/css', to: 'xterm/css' }, - { from: 'node_modules/xterm/lib', to: 'xterm/lib' }, - ], - }), - ], + } };