Skip to content

Commit

Permalink
webpack config change for assets icon
Browse files Browse the repository at this point in the history
Signed-off-by: Satish Wadkar <[email protected]>
  • Loading branch information
Satish Wadkar committed Sep 4, 2024
1 parent 79339fd commit 0caa86b
Show file tree
Hide file tree
Showing 3 changed files with 261 additions and 2 deletions.
249 changes: 249 additions & 0 deletions webClient/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webClient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@angular/router": "~18.0.0",
"@ngtools/webpack": "^18.2.2",
"compression-webpack-plugin": "^11.1.0",
"copy-webpack-plugin": "^12.0.2",
"core-js": "^3.38.1",
"css-loader": "^7.1.2",
"rxjs": "~7.8.1",
Expand Down
13 changes: 11 additions & 2 deletions webClient/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
Copyright Contributors to the Zowe Project.
*/

var path = require('path');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const baseConfig = require(path.resolve(process.env.MVD_DESKTOP_DIR, 'plugin-config/webpack5.base.js'));
const AotPlugin = require('@ngtools/webpack').AngularWebpackPlugin;
Expand All @@ -19,7 +20,7 @@ if (process.env.MVD_DESKTOP_DIR == null) {
throw new Error('You must specify MVD_DESKTOP_DIR in your environment');
}

var config = {
const config = {
entry: [
path.resolve(__dirname, './src/plugin.ts')
],
Expand All @@ -46,6 +47,14 @@ var config = {
]
},
plugins: [
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(__dirname, './src/assets/icon.png'),
to: path.resolve('../web/assets/icon.png')
}
]
}),
new CompressionPlugin({
threshold: 100000,
minRatio: 0.8
Expand Down

0 comments on commit 0caa86b

Please sign in to comment.