Skip to content

Commit 68aef6b

Browse files
committed
chore(blank): remove intents config from webpack
1 parent d09edc2 commit 68aef6b

2 files changed

Lines changed: 0 additions & 28 deletions

File tree

blank/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"babel-loader": "^8.3.0",
3333
"chokidar": "^3.6.0",
3434
"clean-webpack-plugin": "^3.0.0",
35-
"copy-webpack-plugin": "^7.0.0",
3635
"css-loader": "^5.2.7",
3736
"file-loader": "^6.2.0",
3837
"html-webpack-plugin": "^5.6.0",

blank/webpack.config.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
11
const path = require('path')
22
const webpack = require('webpack')
3-
const CopyPlugin = require('copy-webpack-plugin')
43
const TerserPlugin = require('terser-webpack-plugin')
54
const HtmlWebpackPlugin = require('html-webpack-plugin')
65
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
76
const ImageminPlugin = require('imagemin-webpack')
87

98
const ROOT = path.resolve(__dirname, 'src')
10-
const NLP_DIRNAME = 'nlp'
119
const ASSETS_DIRNAME = 'assets'
12-
const MODELS_DIRNAME = 'models'
13-
const TASKS_DIRNAME = 'tasks'
1410

15-
const INTENT_CLASSIFICATION_DIRNAME = 'intent-classification'
1611
const OUTPUT_PATH = path.resolve(__dirname, 'dist')
1712
const WEBVIEWS_PATH = path.resolve(OUTPUT_PATH, 'webviews')
18-
const TASKS_PATH = path.join(ROOT, NLP_DIRNAME, TASKS_DIRNAME)
19-
20-
const INTENT_CLASSIFICATION_MODELS_PATH = path.join(
21-
NLP_DIRNAME,
22-
TASKS_DIRNAME,
23-
INTENT_CLASSIFICATION_DIRNAME,
24-
MODELS_DIRNAME
25-
)
26-
const INTENTS_ASSETS_MODELS_PATH = path.join(
27-
ASSETS_DIRNAME,
28-
TASKS_DIRNAME,
29-
INTENT_CLASSIFICATION_DIRNAME,
30-
MODELS_DIRNAME
31-
)
3213

3314
const BOTONIC_PATH = path.resolve(
3415
__dirname,
@@ -331,14 +312,6 @@ function botonicNodeConfig(mode) {
331312
IS_NODE: true,
332313
HUBTYPE_API_URL: JSON.stringify(process.env.HUBTYPE_API_URL),
333314
}),
334-
new CopyPlugin({
335-
patterns: [
336-
{
337-
from: INTENT_CLASSIFICATION_MODELS_PATH,
338-
to: INTENTS_ASSETS_MODELS_PATH,
339-
},
340-
],
341-
}),
342315
],
343316
}
344317
}

0 commit comments

Comments
 (0)