Skip to content

Commit

Permalink
ADDON-34283: ucc_ui_lib: updated webpack config according to guidelin…
Browse files Browse the repository at this point in the history
…e mentioned in react doc for code-splitting
  • Loading branch information
harshpatel-crest committed Mar 2, 2021
1 parent e490b81 commit 57a81ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions splunk_add_on_ucc_framework/ucc_ui_lib/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ const webpackMerge = require('webpack-merge');
const baseConfig = require('@splunk/webpack-configs/base.config').default;

module.exports = webpackMerge(baseConfig, {
entry: path.join(__dirname, 'src/main/webapp/pages/entry_page'),
entry: {
entry_page: path.join(__dirname, 'src/main/webapp/pages/entry_page')
},
output: {
path: path.join(__dirname, 'stage/appserver/static/js/build'),
filename: 'entry_page.js',
filename: '[name].js',
},
plugins: [
new CopyWebpackPlugin([
Expand Down

0 comments on commit 57a81ec

Please sign in to comment.