Skip to content

Commit 02e6987

Browse files
committed
chore(blank-typescript): remove intents config from webpack
1 parent 74c6811 commit 02e6987

2 files changed

Lines changed: 1 addition & 29 deletions

File tree

blank-typescript/package.json

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

blank-typescript/webpack.config.js

Lines changed: 1 addition & 28 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,
@@ -199,7 +180,7 @@ function botonicDevConfig(mode) {
199180
},
200181
resolve: resolveConfig,
201182
devServer: {
202-
static: [OUTPUT_PATH, TASKS_PATH],
183+
static: [OUTPUT_PATH],
203184
liveReload: true,
204185
historyApiFallback: true,
205186
hot: true,
@@ -332,14 +313,6 @@ function botonicNodeConfig(mode) {
332313
IS_NODE: true,
333314
HUBTYPE_API_URL: JSON.stringify(process.env.HUBTYPE_API_URL),
334315
}),
335-
new CopyPlugin({
336-
patterns: [
337-
{
338-
from: INTENT_CLASSIFICATION_MODELS_PATH,
339-
to: INTENTS_ASSETS_MODELS_PATH,
340-
},
341-
],
342-
}),
343316
],
344317
}
345318
}

0 commit comments

Comments
 (0)