Skip to content

Commit

Permalink
Merge pull request #61 from ligangty/1.0.x
Browse files Browse the repository at this point in the history
Some update for webpack build
  • Loading branch information
ligangty authored Nov 8, 2023
2 parents 766b13a + 6ff18f7 commit c1fb660
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/webui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/main/webui/webpack-content-browse.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -47,4 +47,4 @@ module.exports = {
{ test: /\.jsx?$/, use: 'babel-loader', exclude: /node_modules/ }
]
}
}
};
8 changes: 4 additions & 4 deletions src/main/webui/webpack-content-browse.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -50,4 +50,4 @@ module.exports = {
{ test: /\.jsx?$/, use: 'babel-loader', exclude: /node_modules/ }
]
}
}
};

0 comments on commit c1fb660

Please sign in to comment.