From eba3c541cabf7ef185d9ab147abe2a882b6bdf1e Mon Sep 17 00:00:00 2001 From: JSHan94 Date: Wed, 29 Nov 2023 18:40:57 +0900 Subject: [PATCH] remove unnecessary file --- bots/webpack.config.js | 60 ------------------------------------------ 1 file changed, 60 deletions(-) delete mode 100644 bots/webpack.config.js diff --git a/bots/webpack.config.js b/bots/webpack.config.js deleted file mode 100644 index f0b2c84e..00000000 --- a/bots/webpack.config.js +++ /dev/null @@ -1,60 +0,0 @@ -const path = require('path'); -const webpack = require('webpack'); -const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin'); -const BundleAnalyzerPlugin = require('webpack-bundle-analyzer') - .BundleAnalyzerPlugin; - -const commonConfig = { - entry: './src/index.ts', - devtool: 'source-map', - module: { - rules: [ - { - test: /\.tsx?$/, - use: 'ts-loader', - exclude: /node_modules/ - } - ] - }, - resolve: { - extensions: ['.tsx', '.ts', '.js'], - plugins: [new TsconfigPathsPlugin()] - }, - plugins: [ - new webpack.IgnorePlugin( - /wordlists\/(french|spanish|italian|korean|chinese_simplified|chinese_traditional|japanese)\.json$/ - ) - ], - node: { - net: 'empty', - tls: 'empty', - fs: 'empty' - } -}; - -const webConfig = { - ...commonConfig, - target: 'web', - output: { - filename: 'bundle.js', - libraryTarget: 'umd', - library: 'Mirror', - path: path.resolve(__dirname, 'dist') - }, - plugins: [ - ...commonConfig.plugins - // new BundleAnalyzerPlugin(), - ] -}; - -const nodeConfig = { - ...commonConfig, - target: 'node', - output: { - path: path.resolve(__dirname, 'dist'), - libraryTarget: 'commonjs', - filename: 'bundle.node.js' - } -}; - -module.exports = [webConfig, nodeConfig];