diff --git a/blank/package.json b/blank/package.json index f5b39aa..eb78b5f 100644 --- a/blank/package.json +++ b/blank/package.json @@ -32,7 +32,6 @@ "babel-loader": "^8.3.0", "chokidar": "^3.6.0", "clean-webpack-plugin": "^3.0.0", - "copy-webpack-plugin": "^7.0.0", "css-loader": "^5.2.7", "file-loader": "^6.2.0", "html-webpack-plugin": "^5.6.0", diff --git a/blank/webpack.config.js b/blank/webpack.config.js index 06d7d87..0adfd3a 100644 --- a/blank/webpack.config.js +++ b/blank/webpack.config.js @@ -1,34 +1,15 @@ const path = require('path') const webpack = require('webpack') -const CopyPlugin = require('copy-webpack-plugin') const TerserPlugin = require('terser-webpack-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin') const { CleanWebpackPlugin } = require('clean-webpack-plugin') const ImageminPlugin = require('imagemin-webpack') const ROOT = path.resolve(__dirname, 'src') -const NLP_DIRNAME = 'nlp' const ASSETS_DIRNAME = 'assets' -const MODELS_DIRNAME = 'models' -const TASKS_DIRNAME = 'tasks' -const INTENT_CLASSIFICATION_DIRNAME = 'intent-classification' const OUTPUT_PATH = path.resolve(__dirname, 'dist') const WEBVIEWS_PATH = path.resolve(OUTPUT_PATH, 'webviews') -const TASKS_PATH = path.join(ROOT, NLP_DIRNAME, TASKS_DIRNAME) - -const INTENT_CLASSIFICATION_MODELS_PATH = path.join( - NLP_DIRNAME, - TASKS_DIRNAME, - INTENT_CLASSIFICATION_DIRNAME, - MODELS_DIRNAME -) -const INTENTS_ASSETS_MODELS_PATH = path.join( - ASSETS_DIRNAME, - TASKS_DIRNAME, - INTENT_CLASSIFICATION_DIRNAME, - MODELS_DIRNAME -) const BOTONIC_PATH = path.resolve( __dirname, @@ -198,7 +179,7 @@ function botonicDevConfig(mode) { }, resolve: resolveConfig, devServer: { - static: [OUTPUT_PATH, TASKS_PATH], + static: [OUTPUT_PATH], liveReload: true, historyApiFallback: true, hot: true, @@ -331,14 +312,6 @@ function botonicNodeConfig(mode) { IS_NODE: true, HUBTYPE_API_URL: JSON.stringify(process.env.HUBTYPE_API_URL), }), - new CopyPlugin({ - patterns: [ - { - from: INTENT_CLASSIFICATION_MODELS_PATH, - to: INTENTS_ASSETS_MODELS_PATH, - }, - ], - }), ], } }