remove plugins from webpack config

This commit is contained in:
deflax 2024-04-29 18:52:13 +03:00
parent b6e4c39ae1
commit 0d02717911

View file

@ -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' },
],
}),
],
}
};