From 6ff18f73aaddda1b57ff721b7dff46e137d387a1 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Wed, 8 Nov 2023 10:06:32 +0800 Subject: [PATCH] Some update for webpack build --- src/main/webui/package.json | 2 +- src/main/webui/webpack-content-browse.dev.config.js | 6 +++--- src/main/webui/webpack-content-browse.prod.config.js | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/webui/package.json b/src/main/webui/package.json index f7b357a..613ef6a 100644 --- a/src/main/webui/package.json +++ b/src/main/webui/package.json @@ -40,7 +40,7 @@ }, "scripts": { "webpack": "node node_modules/webpack/bin/webpack.js --openssl-legacy-provider", - "compile": "NODE_ENV=production webpack --config ./webpack.config.js --progress && webpack --config ./webpack-content-browse.prod.config.js --progress", + "compile": "NODE_ENV=production webpack --config ./webpack.config.js && webpack --config ./webpack-content-browse.prod.config.js", "clean": "rm -rf ./dist", "build": "npm run-script clean && npm run-script compile && cp ./content-browse/src/main/html/* ./dist/content-browse/ && rm ./dist/indy.bundle.js", "start": "http-server ./dist -a localhost -p 8000", diff --git a/src/main/webui/webpack-content-browse.dev.config.js b/src/main/webui/webpack-content-browse.dev.config.js index d476277..e9f882e 100644 --- a/src/main/webui/webpack-content-browse.dev.config.js +++ b/src/main/webui/webpack-content-browse.dev.config.js @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -const path = require('path') -const webpack = require('webpack') +const path = require('path'); +const TerserPlugin = require('terser-webpack-plugin'); module.exports = { entry: './content-browse/src/main/js/app.js', @@ -47,4 +47,4 @@ module.exports = { { test: /\.jsx?$/, use: 'babel-loader', exclude: /node_modules/ } ] } -} +}; diff --git a/src/main/webui/webpack-content-browse.prod.config.js b/src/main/webui/webpack-content-browse.prod.config.js index bb975b6..8ecb92a 100644 --- a/src/main/webui/webpack-content-browse.prod.config.js +++ b/src/main/webui/webpack-content-browse.prod.config.js @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -const path = require('path') -const webpack = require('webpack') -const TerserPlugin = require('terser-webpack-plugin') +const path = require('path'); +const webpack = require('webpack'); +const TerserPlugin = require('terser-webpack-plugin'); module.exports = { entry: './content-browse/src/main/js/app.js', @@ -50,4 +50,4 @@ module.exports = { { test: /\.jsx?$/, use: 'babel-loader', exclude: /node_modules/ } ] } -} +};