remove plugins from webpack config
This commit is contained in:
parent
b6e4c39ae1
commit
0d02717911
1 changed files with 3 additions and 11 deletions
|
@ -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' },
|
||||
],
|
||||
}),
|
||||
],
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue