Skip to content

Commit

Permalink
chore(blank): remove intents config from webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Feb 21, 2024
1 parent d09edc2 commit 74c6811
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
1 change: 0 additions & 1 deletion blank/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
29 changes: 1 addition & 28 deletions blank/webpack.config.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -198,7 +179,7 @@ function botonicDevConfig(mode) {
},
resolve: resolveConfig,
devServer: {
static: [OUTPUT_PATH, TASKS_PATH],
static: [OUTPUT_PATH],
liveReload: true,
historyApiFallback: true,
hot: true,
Expand Down Expand Up @@ -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,
},
],
}),
],
}
}
Expand Down

0 comments on commit 74c6811

Please sign in to comment.